Automated and reliable backups of your GitHub and GitLab repositories
๐ฆ Backups remote Git repositories hosted on GitLab or GitHub
โต๏ธ Automatically discovers all repositories for a given username
๐ต๏ธ Works with public and private repositories
๐ฆ Support for explicit deny- and allow-lists
๐ Can read Personal Access Tokens from Hashicorp Vault
๐ญ Observability provided by metrics
๐ Upload changes to a S3 compatible service
๐ต Add GitTea service support
๐ช Add dummy service that allows a plain list of loose Git repositories
GitHub and GitLab don't run on altruism. Your account or individual repositories may be gone overnight without notice.
$ git clone https://github.com/soerenschneider/git-repo-backup.git
$ cd git-repo-backup
$ docker run -v $(pwd)/contrib:/config ghcr.io/soerenschneider/git-repo-backup --config /config/example-config.json --dest /tmp
As a prerequisite, you need to have Python3 installed.
$ git clone https://github.com/soerenschneider/git-repo-backup.git
$ cd git-repo-backup
$ make venv
$ ./venv/bin/python3 git_repo_backup --config contrib/example-config.json --dest /tmp
Head over here to see config and usage examples.
The exposed metrics are listed here.
See the full changelog