Usage Examples
Basic — back up a public repo as a Git bundle
scorpiox-vault-git --url https://github.com/torvalds/linux.git
Specify output path and format
scorpiox-vault-git --url https://github.com/org/repo.git \
--format tar \
-o ./backups/repo-2026-03-13.tar
Back up a private repo using a personal access token
scorpiox-vault-git --url https://github.com/myorg/private-repo.git \
--pat ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
--format zip
ZIP archive with custom output name for a self-hosted Gitea/Forgejo instance
scorpiox-vault-git --url https://git.example.com/team/infra.git \
--pat $GITEA_TOKEN \
--format zip \
-o /mnt/nas/git-backups/infra-$(date +%F).zip
Cron job — nightly bundle backup to external drive
0 3 * * * root scorpiox-vault-git --url https://github.com/org/core.git \
--pat $(cat /root/.git-token) \
-o /mnt/backup/core-$(date +\%F).bundle
Restore from a bundle backup
git clone core-2026-03-13.bundle ./restored-repo
cd ./restored-repo
git remote set-url origin https://github.com/org/core.git
git fetch origin