Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6
A Python script to backup all repos (public or private) of a user.
NotificationsYou must be signed in to change notification settings
p0dalirius/GithubBackupAllRepos
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A Python script to backup all repos (public or private) of a user.
- Clone public and private repos
- Load specified SSH key before starting backup
- Automatically lists all repos from Github's API
- Personal access token authentication to Github's API
$ ./GithubBackupAllRepos.py -husage: GithubBackupAllRepos.py [-h] -u USERNAME [-d DIRECTORY] [-S SSH_KEY] [-T TOKEN] [-P] [-v]Description messageoptional arguments: -h, --help show this help message and exit -u USERNAME, --username USERNAME Target github username -d DIRECTORY, --directory DIRECTORY Local directory to store repos into. -S SSH_KEY, --ssh-key SSH_KEY SSH key to authenticate with. -T TOKEN, --token TOKEN Github personal access token, necessary to list your private repos. -P, --pull Perform git pull on existing directories. -v, --verbose Verbose mode. (default: False)./GithubBackupAllRepos.py -u TargetUser -d ./SavedRepos/ --pull./GithubBackupAllRepos.py -u YourUserName -d ./SavedRepos/ -S ~/.ssh/github -v --pullTo create a personal access token you need to go inSettings > Developer settings > Personal access tokens in your account, or athttps://github.com/settings/tokens/new
Everything is in Github's docs here:
Pull requests are welcome. Feel free to open an issue if you want to add other features.
About
A Python script to backup all repos (public or private) of a user.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.


