#restore root from btrfs snapshot
5 messages · Page 1 of 1 (latest)
I am trying to restore a previous snapshot with the command sudo btrfs subvolume snapshot -r /mnt/arch/.snapshots/2524/snapshot /mnt/arch/ but that puts the snapshot as a subdirectory in /mnt/arch.
ls -tralF /mnt/arch/ total 4 dr-xr-xr-x 10 root root 4096 Jul 24 2024 ../ drwxr-xr-x 1 root root 540 Dec 5 12:58 snapshot/
(The contents of the subdir snapshot is the rootfs I want to restore.)
How do I correctly replace the current root with the snapshot? (if I use @, it goes in the subdir @, which is not being mounted as the rootfs.)
Thank you.