scorpiox-vault-gitCore

Clone and archive Git repositories into portable offline bundles, tarballs, or zip files. Supports authenticated HTTPS remotes via personal access tokens for private repo backup.

🐧 Linux x64 🐧 Linux ARM64 🍎 macOS ARM64 🪟 Windows x64

Flags & Options

Flag Short Description Takes Value
--url Git remote URL (HTTPS) Yes
--pat Git auth token (used as username in HTTPS URL) Yes
--format Output format: bundle (default), tar, zip Yes
--output -o Output file path for the backup archive Yes
--help -h Show help message and exit Yes

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
# /etc/cron.d/git-vault-backup 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
# Clone from the offline bundle to restore 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

Source & Build Info

Source File
scorpiox/scorpiox-vault-git.c
Lines of Code
347
Dependencies
None — zero external dependencies

Related Tools