Skip to content

A tool combining Borgmatic and Rclone to upload the Borg repository to a remote destination

Notifications You must be signed in to change notification settings

kylegarcher/borgmatic-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Borgmatic Sync

A tool combining Borgmatic and Rclone to upload the borg repository to a remote destination

Features

  • Stops all Docker containers except Borgmatic, then starts them after backup has completed
  • Syncs borg repo to remote destination via Rclone

Setup

wget https://raw.githubusercontent.com/kylegarcher/borgmatic-sync/main/borgmatic_sync.sh
chmod +x borgmatic_sync.sh
borgmatic_sync.sh --help

Examples

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

About

A tool combining Borgmatic and Rclone to upload the Borg repository to a remote destination

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages