Re:Ask HN: My GitHub account got suspended without any notice
by smoothgrammer on Tuesday July 14, 2020 @11:23AM
(#23833005)
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.
[ Parent
| on HN ]
Re:Ask HN: My GitHub account got suspended without any notice
by the_svd_doctor on Tuesday July 14, 2020 @11:25AM
(#23833028)
Is there an easy way to do that ? Some script available somewhere ?
Re:Ask HN: My GitHub account got suspended without any notice
by fiddlerwoaroof on Tuesday July 14, 2020 @11:46AM
(#23833310)
What I do is run Gitolite in a cheap VPS and then use https://github.com/miracle2k/gitolite-simple-mirror to automatically mirror the gitolite repositories to github and gitlab.
Re:Ask HN: My GitHub account got suspended without any notice
by tworingsoft on Tuesday July 14, 2020 @03:39PM
(#23836736)
I 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-fo...
Re:Ask HN: My GitHub account got suspended without any notice
by maxlaumeister on Tuesday July 14, 2020 @05:34PM
(#23838226)
I 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.
Re:Ask HN: My GitHub account got suspended without any notice
by sergiotapia on Tuesday July 14, 2020 @03:37PM
(#23836703)
We just pay for this: https://backhub.co/
Re:Ask HN: My GitHub account got suspended without any notice
by blocked_again on Tuesday July 14, 2020 @11:29AM
(#23833077)
You can write a simple GitHub action that pushes your repo to GitLab/BitBucket etc every 30 minutes or something.
Re:Ask HN: My GitHub account got suspended without any notice
by gitgud on Wednesday July 15, 2020 @06:40PM
(#23853208)
Probably 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...
Re:Ask HN: My GitHub account got suspended without any notice
by rajesh-s on Tuesday July 14, 2020 @12:11PM
(#23833671)
Do you know an example of this?
Re:Ask HN: My GitHub account got suspended without any notice
by hundchenkatze on Tuesday July 14, 2020 @12:13PM
(#23833713)
Here's one I found on the Actions marketplace.