Backup all the repositories of a github user or organization automatically
Find a file
S J Saravanan e55e123f54 Fixed string parsing logic
Fixed this error which used to come up previously :-
Traceback (most recent call last):
  File "github-backup.py", line 55, in <module>
    main()
  File "github-backup.py", line 22, in main
    process_repo(repo, args)
  File "github-backup.py", line 45, in process_repo
    print("Processing repo: {}".format(repo.full_name))
ValueError: zero length field name in format
2013-07-15 15:03:46 +05:30
github-backup.py Fixed string parsing logic 2013-07-15 15:03:46 +05:30
README.markdown updated the README 2012-06-23 16:58:55 -04:00

GitHub-Backup

Idea By Chris Lockfort (devnull@csh.rit.edu) (Github username: Clockfort) Python version By Anthony Gargiulo (anthony@agargiulo.com) (Github username: agargiulo)

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

Usage

"./github-backup.py USERNAME BACKUPDIR [-c|--cron] [-h|--help]"

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.