digint / btrbk

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

Do not abort backup if can't fetch one of the remote target #468

Open amigthea opened 2 years ago

amigthea commented 2 years ago

As title, I configured a multi remote target backup but sometimes one of those remote nodes is not reachable, there's a way to skip those node's backup and do the rest? Because right now even if one is not reachable the backup fails for all of the remote target

Sample configuration

volume
  [...]
  subvolume
    target send-receive <target1>
      ssh_identity [...]
    target send-receive <target2>
      ssh_identity [...]
    target send-receive <target3>
      ssh_identity [...]
emirror-de commented 2 years ago

I do have a similar problem. My configuration is to keep one daily snapshot and hourly of the current day. When the remote target is not available, the snapshots from the last day are not getting removed so they sum up until the remote target is available again. This is quite annoying when the remote target is more than a few days not available.

luxagen commented 1 year ago

I agree. Even if not configurable, the default should be to make target failures a non-fatal error and just report them all at the end. For instance, I do a nightly btrbk run with multiple targets for different subvolumes, and I wouldn't want it to fail the whole job (i.e. the other subvols) just because one had an unreachable target.