Skip to content

egbertbouman/backup-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backup-github

Script for backing up a GitHub account's repositories.

Dependencies

  • Python 2.7+
  • pexpect

You can install Pexpect using pip

pip install pexpect

Usage

usage: backup-github.py [--help] [--config CONFIG] [--dir DIR]
                        [--organization ORGANIZATION] [--username USERNAME]
                        [--password PASSWORD]

Backup a GitHub account

optional arguments:
  --help, -h            Show this help message and exit

File-based configuration:
  --config CONFIG, -c CONFIG
                        Read configuration from file

Command line configuration:
  --dir DIR, -d DIR     Directory in which to store the backup
  --organization ORGANIZATION, -o ORGANIZATION
                        GitHub organization for which to make a backup
  --username USERNAME, -u USERNAME
                        GitHub username. If no organization is provided, this
                        account will be backed up.
  --password PASSWORD, -p PASSWORD
                        GitHub password

Example backup.conf

[backup-github]
dir = your_backup_dir
organization = your_organization
username = your_personal_access_token
password = x-oauth-basic

About

Script for backing up an organization's GitHub repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published