0

How do I make a BTRFS incremental backup to multiple source destinations, so I don't have to run btrfs send multiple times?

btrfs send -p /tmp/parent_subvol /tmp/incremental_backup_snapshot | btrfs receive /mnt/destination_drive1
btrfs send -p /tmp/parent_subvol /tmp/incremental_backup_snapshot | btrfs receive /mnt/destination_drive2
Geremia
  • 4,745
  • 37
  • 43

1 Answers1

0

in bash:

btrfs send -p /tmp/parent_subvol /tmp/incremental_backup_snapshot | tee >(btrfs receive /mnt/destination_drive2) | btrfs receive /mnt/destination_drive1

(courtesy this answer)

Geremia
  • 4,745
  • 37
  • 43