On Wed, 2024-03-13 at 13:42 -0400, Joe Salmeri wrote:
On 3/13/24 11:22, Ben Greiner wrote:
Am 13.03.24 um 14:07 schrieb Carlos E. R.:
item 2 affects in this case, as the admin can not simply create a new btrfs partition and move the existing system to it.
Ever heard of btrfs send and btrfs receive? I do this for system migrations all the time. I can even migrate old snapshots i when I want to keep them. Just send/receive ro snapshots of what you want to move, clone one into a rw snapshot and mount it as your live volume. It's not a single step, but definitely possible for an everyday admin.
Hi Ben,
I was just getting ready to say the same thing. btrfs send/receive can be sent to another btrfs partition or to a regular file.
I just wish there was an easy way to specify to get all the subvolumes.
Shameless self-marketing: https://github.com/mwilck/btrfs-clone It uses send/receive internally. These days, it's probably simpler to just do a block-level clone of the filesystem with "dd" and (if necessary) change the UUID. Martin