r/github • u/clevenger2002 • Oct 10 '26
Question Serious disaster backups?
Ok, I'm wondering about good backup services and stratagems for two disaster cases. Having a git-clone on a backup disk is a first step, but I'm not certain of exactly what data is missed by this. Any suggestions for a way to survive cases like the ones below?
Assume that somehow your entire github account gets mangled somehow and you want a complete backup of everything (repos, history, branches, bug tracking, lfs...etc) that can be restored to a fresh github site. Ie: a complete replica of everything. What do you use?
Assume that through some disaster, all of github is completely wiped out and no longer available and you want a backup that could be restored to some other source control system (perforce...etc) preserving as much of the github information and history as possible. What then?
12
u/spellcasterGG Oct 10 '26 edited Oct 10 '26
You clearly don't have any grasp of what git actually is or how it works... git still works regardless of whatever github is doing.
Reddit is not ChatGPT. If you ask stupid questions, you're gonna get stupid answers.
5
u/hxtk3 Oct 10 '26
Do you think git and GitHub are the same thing? I can’t imagine why I’d migrate to perforce as a part of my disaster recovery plan for my preferred git remote going down.
A similar question with different technologies is, “if Gmail went down, how would you migrate all your email history into the iOS messages app?” and the answer is I wouldn’t, I’d pick a different email provider instead of going to a different protocol.
What you actually lose if GitHub goes down is the issue tracker, pull requests, discussions, project management features, and CI runners. The code would be fine and any clones could be pushed to a new upstream with basically nothing lost.
1
u/Will_Pro_Backup 27d ago
git clone --mirror gets branches and tags, but the wiki is its own repo (<repo>.wiki.git) and LFS needs git lfs fetch --all. Issues, PRs and releases aren't in git at all; the migrations API exports them as JSON, but the archive is deleted after 7 days so download it right away. Restoring that JSON into a fresh org isn't one-click, so test it once. (FYI- I work on a SaaS backup tool, so biased ;))
1
u/serverhorror Oct 10 '26
Can be locally installed and can (probably) import JSON via a script to recreate tickets,
Everything else: just mirror the git repos
1
u/GarthODarth Oct 10 '26
You can export all your account data on GitHub.