Public bug reported:

When using child subvolumes (e.g. /var/lib/docker/btrfs,
/var/snap/lxd/common/lxd/storage-pools/default), restoring a snapshot
involves moving these child subvolumes manually.

I suggest to add a command "btrfs subvolume restore SRC DST" with an option 
"--include-children" with the following behavior:
1. In case DST already exists, it could be moved to DST.bak
2. btrfs subvolume snapshot SRC DST
3. For all children of DST.bak, move to SRC

** Affects: btrfs-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1871246

Title:
  Revert to snapshot with child subvolumes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/btrfs-tools/+bug/1871246/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to