Revert to snapshot with child subvolumes

Bug #1871246 reported by Dark Dragon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
btrfs-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.