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 --helpBasic usage
borgmatic_sync.sh --repo /mnt/user/backups/borg --cloud-dest gdrive:/backupsDry run
borgmatic_sync.sh --repo /mnt/user/backups/borg --cloud-dest gdrive:/backups --dry-runStop all containers except Borgmatic and Nextcloud
borgmatic_sync.sh --repo /mnt/user/backups/borg --cloud-dest gdrive:/backups --keep-alive NextcloudBorgmatic container is named "Foobar"
borgmatic_sync.sh --repo /mnt/user/backups/borg --cloud-dest gdrive:/backups --borgmatic-container Foobar