Dockerized version of python-github-backup with extra automation. This container makes a backup daily and keeps up to defined number of backups.
- 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 both
GITHUB_USER
andGITHUB_ACCESS_TOKEN
(in environment or directly indocker-compose.yml
). If you have a multiple organizations, you can list them in aGITHUB_USER
variable separating names by a comma. - Run
docker-compose up -d
to initiate daily backup
- Clone this repo
- run
docker-compose build