0

Does anyone know to use fsarchiver to make a backup of only a single BTRFS subvolume ?

Will this mechanism work ?

1. Mounted the snapshot in /mnt:
mount -t btrfs -o subvolid="id" /dev/sda2 /mnt

2. chroot snapshot:
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /media/fsbackup /mnt/media/fsbackup
chroot /mnt

3. Fsarchiver backup from btrfs snapshot
fsarchiver savefs -Av -s 2400 -z 2 /media/fsbackup/backup.fsa /dev/sda2 \
ng.newbie
  • 1,105
  • 6
  • 17
  • 29
  • It won't help. You should just mount the subvol on e.g. `/mnt` and use `savedir` (with `/mnt` as the directory to save) instead. – Tom Yan Aug 01 '21 at 05:50
  • Alternatively, consider https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-send – Tom Yan Aug 01 '21 at 05:52

0 Answers0