digint / btrbk

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

There seems to be no way to send snapshots of only some specific subvolumes to a remote host. #517

Closed daiaji closed 1 year ago

daiaji commented 1 year ago
cat /etc/btrbk/btrbk.conf
volume /btrfsroot
  subvolume @
     group root # Matches the group configuration option of volume, subvolume or target sections.
     snapshot_dir snapshots_root # Create snapshots in /btrfsroot/snapshots_root

  subvolume @home
     group home                        
     snapshot_dir snapshots_home
     target send-receive ssh://test.local/backups/snapshots_home
sudo cat /var/log/btrbk.log
2022-12-08T12:40:20+0800 startup v0.32.4 - - - # btrbk command line client, version 0.32.4
2022-12-08T12:40:22+0800 snapshot starting /btrfsroot/snapshots_root/@.20221208T1240 /btrfsroot/@ - -
2022-12-08T12:40:25+0800 snapshot success /btrfsroot/snapshots_root/@.20221208T1240 /btrfsroot/@ - -
2022-12-08T12:40:25+0800 snapshot starting /btrfsroot/snapshots_home/@home.20221208T1240 /btrfsroot/@home - -
2022-12-08T12:40:25+0800 snapshot success /btrfsroot/snapshots_home/@home.20221208T1240 /btrfsroot/@home - -
2022-12-08T12:40:25+0800 finished success - - - -

But it doesn't seem to be working.

daiaji commented 1 year ago

Failure due to my wrong policy settings.