如何将btrfs快照发送到多个目标驱动器?

时间:2018-01-12 21:34:00

标签: backup snapshot btrfs

如何将BTRFS incremental backup设置为多个源目的地,因此我不必多次运行btrfs send

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

1 个答案:

答案 0 :(得分:0)

bash中的

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

(礼貌this answer