btrbk
btrbk copied to clipboard
Cannot use the mountpoint of subvolumes as a subvolume
trafficstars
In the root subvolume there are three subvolumes: @, @home, and @snapshots. @ is mounted as /, @home is mounted as /home, and @snapshots is mounted as both /.snapshots and /home/.snapshots.
I would like to be able to set up the btrbk configuration like this
volume ssh://planeptune/
subvolume .
target /mnt/backups/remote/planeptune/root
subvolume home
target /mnt/backups/remote/planeptune/home
But if I do I get this warning
WARNING: Skipping subvolume "planeptune:/./home": Not a child subvolume of: planeptune:/
This forces me to use the following in my configuration which is less than optimal since it forces me to define multiple volumes when really one should suffice
volume ssh://planeptune/
subvolume .
target /mnt/backups/remote/planeptune/root
volume ssh://planeptune/home
subvolume .
target /mnt/backups/remote/planeptune/home
see FAQ.
This is asked a lot, and btrbk disallows it for the reasons described in the FAQ. Nevertheless there are some use cases where this could make sense, I'm thinking of changing this behavior.