Sign inSign up

jenswbe/github-backup

By jenswbe

Updated about 1 month ago

Automated mirroring of GitHub repo's

Image
0

3.1K

jenswbe/github-backup repository overview

GitHub Backup

Automated backups of GitHub repo's using Git mirroring.

Configuration

GitHub Backup can be configured in 2 ways:

  1. Create a file called config.yml in the same folder or the parent folder of the binary. See config.yml for an example.
  2. Set environment variables

If both are defined, the environment variables take precedence.

Config keyEnv variableDescriptionDefault value
UsernameGHB_USERNAMEGitHub username
PersonalAccessTokenGHB_PERSONAL_ACCESS_TOKENGitHub PAT
(Fine-grained with All repo's and Contents set to Read-only)
VerboseGHB_VERBOSEEnable verbose logging. Logs sensitive values!false
ConsoleGHB_CONSOLEEnable console logging (default is JSON).false
BackupPathGHB_BACKUP_PATHPath to backup repo's to./backup
RemoveRedundantFoldersGHB_REMOVE_REDUNDANT_FOLDERSRemove local directories for which no repo is foundfalse
MaxFoldersToDeleteGHB_MAX_FOLDERS_TO_DELETEMaximum allowed number of directories to delete.3
If more to be deleted, program will return an error without deleting any folder.
Can be ignored with --ignore-max-folders-to-delete or by setting a negative value.

Tag summary

Content type

Image

Digest

sha256:9141a390a

Size

7.4 MB

Last updated

about 1 month ago

docker pull jenswbe/github-backup