/github-backup-docker

Docker wrapper for github-backup

Primary LanguageShellMIT LicenseMIT

github-backup-docker Docker Automated build

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

  1. Generate github access token. Give it a repo scope with full access to repositories.
  2. Get provided docker-compose.yml. If needed change the mapping for volumes and MAX_BACKUPS number
  3. Change TZ (see the list)
  4. Set both GITHUB_USER and GITHUB_ACCESS_TOKEN (in environment or directly in docker-compose.yml). If you have a multiple organizations, you can list them in a GITHUB_USER variable separating names by a comma.
  5. Run docker-compose up -d to initiate daily backup

Prepared images

Build from the source

  1. Clone this repo
  2. run docker-compose build