The recommended way is to use Docker to start a container that runs this program.
docker run --rm \
-e GITHUB_USERNAME="..." \
-e GITHUB_ACCESS_TOKEN="..." \
-e ... \
-v $(pwd):/backups \
reaperberri/github-backupClone the repository and run:
pip3 install -r requirements.txt
# export environment variables here like so:
# export DESTINATION_DIR=...
python3 main.py| Name | Description | Example |
|---|---|---|
| GITHUB_USERNAME | Your GitHub username | orellazri |
| GITHUB_ACCESS_TOKEN | Your personal access token | ... |
| EXCLUDE_REPOS_LIST | (Optional) Comma-separated list of repositories to exclude | repo1,repo2 |
| EXCLUDE_FORKS | (Optional) Whether to ignore forks you made | True |
| DESTINATION_DIR | (Optional) Directory to put the archived file into. Should only use if not running within a container! | /backups |