Save your repos and list of stargazers & list of forks for them. Pure python3 and git with no dependencies to install.
Title | GitHub Backup |
---|---|
Author | Alexander Kapitanov |
Sources | Python3 |
Contact | <hidden> |
Release | 16 Apr 2022 |
License | MIT |
usage: backup.py [-h] -u USER_LOGIN [-t USER_TOKEN] [--user_forks] [-v] [-f] \
[--forks] [--stars] [--save | --clone] [--bare] [--recursive] [--starred] [-p SAVE_PATH] \
[-l REPO_LIST [REPO_LIST ...]]
GitHub saver for stargazers, forks, repos.
optional arguments:
-h, --help show this help message and exit
-u USER_LOGIN, --user_login USER_LOGIN
User login
-t USER_TOKEN, --user_token USER_TOKEN
User access token
--user_forks Save forked repos by user
-v, --verbose Logging level=debug
-f, --force Force save
--forks Save list of forks
--stars Save list of stargazers
--save Save repos to `save_path`
--clone Clone repos to `save_path`
--bare Clone a bare git repo
--recursive Recursive submodules
--starred Get repositories starred by user
-p SAVE_PATH, --save_path SAVE_PATH
Save path to your repos
-l REPO_LIST [REPO_LIST ...], --repo_list REPO_LIST [REPO_LIST ...]
List of repos to clone or to save
python backup.py -u USER -t TOKEN --stars
python backup.py -u USER -t TOKEN --forks
python backup.py -u USER -t TOKEN --repos -p ~/backups
python backup.py -u USER -t TOKEN --clone -p ~/backups