Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 764 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 764 Bytes

Performs regular backups of all the GitHub repositories you have access to (it'll exclude organisations it doesn't have specific permission to access), automatically downloading any new repositories and updating any existing ones.

You can generate a personal access token here https://github.com/settings/tokens.

Usage

docker run \
  --restart unless-stopped \
  -v </path/to/backup/folder>:/ghbackup \
  -e GITHUB_SECRET=<GITHUB_SECRET> \
  -e CRON_EXPRESSION=<CRON_EXPRESSION> \
  digitalpardoe/ghbackup

Parameters

  • -v /ghbackup - folder to store the GitHub backups
  • -e GITHUB_SECRET - access token (recommended) for the GitHub user
  • -e CRON_EXPRESSION - cron expression for when to run a backup