Categorygithub.com/JenswBE/github-backup
module
0.0.0-20241217062816-767f847564bf
Repository: https://github.com/jenswbe/github-backup.git
Documentation: pkg.go.dev

# README

GitHub Backup

Automated backups of GitHub repo's using Git mirroring.

Links

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.

# Packages

No description provided by the author