On Mon, Jul 24, 2017 at 2:30 PM, Carlos E. R.
Get a list of subvolumes ordered by ogen: btrfs subvolume list -qu --sort ogen /source. Sorting is probably enough to guarantee that snapshots or subvolumes which depend on previous ones are handled first. This is important for dealing with Copy-on-Write, because we need to have the base volumes transferred first.
Ah. This seems better. Good find!
The result won't match original layout exactly, in particular, .snapshots subdirectories will be missing, so you won't be able to even boot (default installation has /etc/fstab entry for /.snapshots mount point). This of course can be fixed up manually, but who knows what else will be missing. And manual fixup will still be different from original. So it is by far not filesystem clone.
https://superuser.com/questions/607363/how-to-copy-a-btrfs-filesystem
Notice that this is a support forum like this. Ie, not a categorical procedure.
There is another interesting method here:
https://unix.stackexchange.com/questions/63528/how-to-clone-btrfs-filesystem...
Well, at the end adding new and removing old device (or simply replacing) is always possible and as long as it runs to completion before reboot it should be the most simple way to migrate btrfs between devices. Target device can be of any size as long as it is large enough for current data amount. Unfortunately there are known issues with multi-device btrfs on startup, which may come unexpected. of course you still will need to re-install bootloader after moving device. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org