Skip to content

Simple container for backing up GitHub repositories.

Notifications You must be signed in to change notification settings

digitalpardoe/docker-ghbackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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