github-backup-docker
Dockerized version of python-github-backup with extra automation. This container makes a backup daily and keeps up to defined number of backups.
Install and run
- Generate github access token. Give it a
repo
scope with full access to repositories. - Get provided
docker-compose.yml
. If needed change the mapping forvolumes
andMAX_BACKUPS
number - Change TZ (see the list)
- Set
GITHUB_ACCESS_TOKEN
(in environment or directly indocker-compose.yml
) - Set
GITHUB_USER
(Github user accounts) and/orGITHUB_ORG
(Github Organizations; make sure the user token has access to the organization). If you have multiple users/organizations, you can list thme separating names by a comma. - Run
docker-compose up -d
to initiate daily backup
Prepared images
Build from the source
- Clone this repo
- run
docker-compose build