git-sync

git-sync

CLI tool to back up and sync Git repositories

659stars
33forks
Last commit: 3mo ago
Repo age: 2y old

git-sync is a command-line tool for backing up and syncing Git repositories to a local directory. It automates cloning and updating repositories so you retain recoverable copies in case of account issues, accidental deletion, or service outages.

Key Features

  • Backs up all repositories from supported Git hosting services
  • Periodic syncing support for keeping local backups up to date
  • Multiple clone strategies, including bare (space-efficient), shallow, mirror, and full clones
  • Concurrent syncing to reduce total backup time
  • YAML configuration file for managing settings and targets
  • Customizable backup directory layout
  • Notifications on completion and errors

Use Cases

  • Maintain an offline backup of personal or organization repositories
  • Create periodic, automated repository snapshots for disaster recovery
  • Migrate or mirror repositories across Git hosting providers

Limitations and Considerations

  • Focused on repository-level backup/sync; it does not back up hosting-side metadata like issues, PRs, or wikis unless separately cloned/exported

git-sync is a lightweight, automation-friendly way to keep local, restorable copies of your Git repositories. It is especially useful for users who want a simple CLI workflow with configurable clone modes and concurrency for faster backups.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

rclone

rclone

Command-line sync and management tool for cloud and remote storage

55k
4.8k
Last commit: 2d ago

rclone is a CLI tool to sync, copy, mount, and serve files across cloud storage providers and standard protocols like S3, WebDAV, FTP, and SFTP.

Alternative to:
GoodSync
GoodSync
+8
restic

restic

Fast, secure, deduplicating backup tool for files and directories

31.8k
1.7k
Last commit: 1mo ago

Restic is a fast, efficient backup program with encryption, deduplication, snapshots, and multiple storage backends including local, SFTP, REST, and S3-compatible stores.

Alternative to:
Arq Backup
Arq Backup
+15
Duplicati

Duplicati

Encrypted, incremental backups to cloud and remote storage

14.1k
1k
Last commit: 1d ago

Open-source backup client for encrypted, compressed, incremental backups to cloud storage and remote servers via SFTP, WebDAV, and more.

Alternative to:
Duplicacy (Commercial)
Duplicacy (Commercial)
+15
BorgBackup

BorgBackup

Deduplicating backup tool with encryption and compression.

12.9k
811
Last commit: 3d ago

BorgBackup is a deduplicating backup program with authenticated encryption and compression for Unix-like systems.

Alternative to:
BorgBase
BorgBase
+14
Kopia

Kopia

Cross-platform snapshot-based backup tool with encryption and deduplication

12.3k
594
Last commit: 11d ago

Cross-platform backup and restore tool with snapshot-based incremental backups, client-side end-to-end encryption, compression, and deduplication via CLI and GUI.

Alternative to:
Duplicacy (Commercial)
Duplicacy (Commercial)
+15
Duplicacy

Duplicacy

Lock-free deduplicating backup tool with cloud and SFTP storage support

5.6k
349
Last commit: 8mo ago

Cross-platform backup tool with lock-free deduplication, encryption, snapshots, and pruning, supporting local disk, SFTP, and many cloud storage backends.

Alternative to:
Duplicacy (Commercial)
Duplicacy (Commercial)
+15