I want to be able to take a snapshot and restore it in real time.
This works in Fedora and does a live "rollback" :
btrfs subvolume snapshot /home /home/snapshot
mv /home/snapshot /home
But in Ubuntu it just says that it can't move to the same place.
It will agree to move the snapshot folder elsewhere inside /home
, but not to replace it.
Is there a way to get around the problem ?
btrfs subvolume list | grep /home
,mount | grep /home
,df | grep /home
anduname -a
, from both systems (clearly tagged so we can tell which one is which). This smells to me very much like either a kernel version (capability) difference or a file system hierarchy difference. (Thebtrfs
command may require adjusting, but the idea is to get a list of btrfs' idea of what your /home and anything below it looks like.)cp /home/snapshot /home
, (2)rm -r -f /home/snapshot
?