7 ms·
Always do a periodic full off-site cold backup of all your GitHub repos. It's very easy to script and should compress down very small.
by smoothgrammer 6y ago
Always do a periodic full off-site cold backup of all your GitHub repos. It's very easy to script and should compress down very small.
- the_svd_doctor 6y agoIs there an easy way to do that ? Some script available somewhere ?
- blocked_again 6y agoYou can write a simple GitHub action that pushes your repo to GitLab/BitBucket etc every 30 minutes or something.
- gitgud 6y agoProbably better to have the action run on every push to master, no point running it every 30 mins if it hasn't been updated in months...
- rajesh-s 6y agoDo you know an example of this?
- hundchenkatze 6y agoHere's one I found on the Actions marketplace. https://github.com/marketplace/actions/mirroring-repository https://github.com/marketplace/actions/mirroring-repository
- fiddlerwoaroof 6y agoWhat I do is run Gitolite in a cheap VPS and then use https://github.com/miracle2k/gitolite-simple-mirror https://github.com/miracle2k/gitolite-simple-mirror to automatically mirror the gitolite repositories to github and gitlab.
- sergiotapia 6y agoWe just pay for this: https://backhub.co/ https://backhub.co/
- tworingsoft 6y agoI have a script [0] that almost does this, but currently only downloads forks. Could easily be modified to work on all types of repos. Maybe one day I'll get around to doing that myself, hopefully before any spurious lockouts... but then again I usually create the repo locally first and push to GH later, so I should have all my repos already. Also this only does the initial cloning, I still need to implement pulling down new commits. But, the majority of the boilerplate is taken care of, like for authenticating to their API. PRs welcome! And don't forget to fork it ;) [0]: https://github.com/TwoRingSoft/tools/blob/master/bin/sync-forks https://github.com/TwoRingSoft/tools/blob/master/bin/sync-fo...
- maxlaumeister 6y agoI found that Clockfort's Github-Backup is good for downloading an account's repositories en masse. It only supports repos though, and not metadata like issues, comments, wikis, pull requests, etc. https://github.com/clockfort/GitHub-Backup https://github.com/clockfort/GitHub-Backup
- deleted 6y ago[deleted]