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.
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...