digint / btrbk

Tool for creating snapshots and remote backups of btrfs subvolumes
https://digint.ch/btrbk/
GNU General Public License v3.0
1.67k stars 122 forks source link

[Question] Using a Single Config to Snapshot & Backup Multiple Volumes #528

Open uninvitedguest opened 1 year ago

uninvitedguest commented 1 year ago

Thank you very much for creating this tool. It has made diving in to BTRFS (relatively) painless.

I am wondering if a single config file can be used to initiate the backup of multiple BTRFS volumes (e.g. multple HDD's) and selected subvolumes on those disks, or if it is required to create a config file for each.

For example, would this work to create a snapshots in /smnt/ssd/btrbk_snapshots and /mnt/hdd/btrbk_snapshots, and then create backups in /mnt/backupdisk/ssd_backup and /mnt/backupdisk/hdd_backup

snapshot_dir           btrbk_snapshots

volume /mnt/ssd
  target /mnt/backupdisk/ssd_backup
  subvolume ssd_sub_1
  subvolume ssd_sub_1

volume /mnt/hdd
  target /mnt/backupdisk/hdd_backup
  subvolume hdd_sub_1
  subvolume hdd_sub_1

Alternatively, is there a different way that I should be structuring things to accomplish the same using a single config?