fdupoux / fsarchiver

file system archiver for linux
http://www.fsarchiver.org
GNU General Public License v2.0
249 stars 41 forks source link

How do you specify which sub volume to save with BTRFS ? #109

Closed sreyan32 closed 2 years ago

sreyan32 commented 2 years ago

I am trying to backup my data using fsarchiver so that I can move back to ext4 from btrfs.

But the problem is that I don't want all subvolumes to be saved.

I just want to save a particular subvolume, how do I do that ?

marcosfrm commented 2 years ago

Try changing the default subvolume before running fsarchiver:

mount /dev/sdxy /mnt
btrfs subvolume set-default …
umount /mnt
fsarchiver savefs foo.fsa /dev/sdxy

See man 8 btrfs-subvolume.