Open dkebler opened 8 months ago
sudo btrfs-clone --toplevel -v /tmp/source /tmp/dest
unsharing mount namespace
fileystem /tmp/dest is not empty
yea, I don't think btrfs-clone supports what I am trying to do which is clone a subvolume (and its subvolumes/snapshots) from one device/parition to a subvolume on another device/partition. Looks like this only supports full partition to partition clone.
Yes, that's what it's made for.
Note that for just cloning a single subvolume, simple btrfs send | btrfs receive
works quite well.
I have mounted a subvolume @snapshots that is within a partition of a sd card at
/tmp/source
then pass that mountpoint to btrfs-clone
sudo btrfs-clone --toplevel --dry-run -v /tmp/source /tmp/dest
but btrfs-clone is picking up all the subvolumes on that partition and not starting with @snapshot and below
for example @docker is another subvolume on that same partition.
I thought this is what --toplevel was supposed to stop. https://github.com/mwilck/btrfs-clone?tab=readme-ov-file#the---toplevel-option