4 ms·
Ask HN: Does your company back up its source code, or trust your Git repo 100%?
- vitonsky 2y agoYes, we backup a git repo, but not a GitHub with their issues, PRs and so on. So i have question to HN too, what a good ways you know to backup GitHub repo with all stuff from there? I tried a gitea, but it may only copy repo once, but not sync changes.
- hammyhavoc 2y agoGitea does mirroring—I use it, but not to backup, but to work within a specific workflow on certain repositories.
- andrewstuart 2y agoIts interesting to me that companies literally bet the entire company on there never being any problem ever with their github repos. There's an assumption that it is simply impossible to lose the data that you store in github.
- vitonsky 2y agoHuh, we see an arguments against of this point every year. The projects like https://yuzu-emu.org/ https://yuzu-emu.org/ (deleted from github and now lives as https://suyu.dev/ https://suyu.dev/) or youtube-dl (been suspended on github for some time), a lot of developers from Russia and another countries under sanctions also been blocked. Github is a place for communication with dev community, but it is definitely not a safe place for backup the code.
- pabs3 2y agoThere is github-backup for code/issues/etc, but it doesn't restore to other systems nor back to GitHub. https://github-backup.branchable.com/ https://github-backup.branchable.com/
- kingkongjaffa 2y agoYou could use multiple services for redundancy, ie keep a repo on github/gitlab/bit bucket, i think they all have import / export features into each other to keep issues and stuff
- t_believ-er873 2y agoLook at GitProtect.io for DevOps tools. It allows to back up all the repository and medata.
- Minor49er 2y agoAt one startup I worked at, the CTO accidentally nuked the master branch from both his local machine and upstream. We restored it from the copy I had on my laptop. This incident didn't result in creating backups to my knowledge
- bravetraveler 2y agoI use remotes liberally. Reconciliation is a problem for later
- lbhdc 2y agoI was using source repositories on gcp for this. I have it mirroring my github repositories. Unfortunately it is getting killed.
- t_believ-er873 2y agoBackup is an important part of source code security strategy. In the perfect scenario, it's worth having a few workinf copies of your git repos and metadata in different locations. For that reason, it's possible to use diffrent backup optons, like backup scripts or DevOps backup tools (e.g. GitProtect).