It's a bit annoying that #btrfs can't snapshot to a location that's in fact on the same disk and filesystem, but has been mounted separately as a subvolume.
-
-
replied to Yann Büchau :nixos: last edited by
A #btrfs filesystem can have subvolumes, which can be mounted individually, like internal partitions. But one can also make subvolumes in a live mounted filesystem, which behave exactly like folders. Only subvolumes can be snapshotted - not subdirectories. Basically, a snapshot is just a instant copy of a directory. And if you snapshot to <subvoldir>/.snapshots, you will uselessly accumulate the .snapshots dir. But if you mounted <subvoldir> e.g. at /var, you can't snapshot to /.snapshots.
-
replied to Yann Büchau :nixos: last edited by
@nobodyinperson I usually use the way #OpenSuse does it as reference. They got it all figured out, including bootable snapshots. Really cool.
Copyright © 2025 NodeBB | Contributors