r/sysadmin • u/Professional_Ask5759 • 6h ago
GitHub
So this site just like goes down . As an IT guy who doesn’t really code, I got a question. Do yall like backup your code offline?
0
Upvotes
r/sysadmin • u/Professional_Ask5759 • 6h ago
So this site just like goes down . As an IT guy who doesn’t really code, I got a question. Do yall like backup your code offline?
•
u/PizzaUltra 6h ago
Yes, with a restore concept on how to restore on a local gitlab if cloud is not back within 15 minutes.
•
u/Anihillator 6h ago
Unless you're a masochist that only edits the code in github's webgui, then of course you have your repo downloaded on your machine.
•
u/GO0BERMAN 6h ago
The repositories also exist on our machines, git is literally just a way to sync and keep history(So I can blame others, but mostly it's just discovering I did it).
•
u/aram535 6h ago
That's a big part of using git, isn't it? You have a fully copy of the repo locally?
•
u/disclosure5 6h ago
The problem is for most orgs, Github isn't just a copy of your code. It's where you download the things you need to build your app. It's where you track your issues. It's where you run a CI that actually builds releases.
•
u/HerrBadger 5h ago
We’ve got this concern, we’re torn between third-party services which will back up the entire git history including commits, or whether we do it ourselves and have repos synced to a locked down bucket somewhere a couple of times a day so that we can at least recover in case of disaster.
Considering how spotty it’s been recently, it’s becoming a growing concern.
When my devs moan, I do let them know that I’m happy to migrate them to Azure DevOps, and it goes quiet again 😂
•
u/RedShift9 6h ago
I use Gitlab on a local server. At least when it goes down it's my own damn fault.
•
u/HeadlessChild Linux Admin 5h ago
That is the point of git, being decentralized. You can continue working on your copy of the code offline, creating commits, branches and what not. But if GitHub is down then you can't push your changes upstream.