Backup all the repositories of a github user or organization automatically
Find a file
Anthony Gargiulo a248ae726d Works with new repos. Still need to make it update existing repos. As of
right now, it will just fail because git will fail to clone into a
non-empty directory.
2012-06-18 01:15:54 -04:00
github-backup.pl fixed a hardcoding mistake and accomodate for https 2011-10-24 16:04:33 -04:00
github-backup.py Works with new repos. Still need to make it update existing repos. As of 2012-06-18 01:15:54 -04:00
README.markdown minor changes to error handling 2010-07-13 14:33:45 -04:00

GitHub-Backup

By Chris Lockfort (devnull@csh.rit.edu) (Github username: Clockfort)

GitHub-Backup makes a local backup copy of all of a github user's (or github organization's) repositories.

Usage

"./github-backup.pl USERNAME BACKUP_DIRECTORY"

Then, put it in a cron job somewhere and forget about it for eternity.

Why This Software Exists

This software is useful in many cases:

  • GitHub suddenly explodes.

  • GitHub goes out of business.

  • Your corporation's backup policies are more stringent than GitHub's.

  • You have spotty/no internet access - perhaps you'd like to have all of your repositories available to code on while you ride the train?

  • You are paranoid tinfoil-hat wearer who needs to back up everything in triplicate on a variety of outdated tape media.

Questions, Improvements, Etc

If you have any improvements, I'm happy, (grateful, in fact) to entertain pull requests/ patches, just drop me a line or message me on GitHub.