A tool combining Borgmatic and Rclone to upload the borg repository to a remote destination
- Stops all Docker containers except Borgmatic, then starts them after backup has completed
- Syncs borg repo to remote destination via Rclone
wget https://raw.githubusercontent.com/kylegarcher/borgmatic-sync/main/borgmatic_sync.sh
chmod +x borgmatic_sync.sh
borgmatic_sync.sh --help
Basic usage
borgmatic_sync.sh --repo /mnt/user/backups/borg --cloud-dest gdrive:/backups
Dry run
borgmatic_sync.sh --repo /mnt/user/backups/borg --cloud-dest gdrive:/backups --dry-run
Stop all containers except Borgmatic and Nextcloud
borgmatic_sync.sh --repo /mnt/user/backups/borg --cloud-dest gdrive:/backups --keep-alive Nextcloud
Borgmatic container is named "Foobar"
borgmatic_sync.sh --repo /mnt/user/backups/borg --cloud-dest gdrive:/backups --borgmatic-container Foobar