If I create a snapshot of root with:
btrfs subvolume snapshot -r / /snapshot-$(date +%s)
I can then see this snapshot with
How do I make snapshots that are isolated from the volume that they were created for?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
So how I opted to do this was by editing the root subvolume (0):
mount -t btrfs -o subvolid=0 /dev/sdXX /mnt
cd /mnt; btrfs subvolume create @snapshots
Did a preliminary
ls / and noticed I didn't see the subvolume; great, now onto next step; a test!
To create isolated snapshots that aren't visible from the original subvolume mount the created subvolume (
@snapshot), create the snapshot, and then unmount it.
btrfs subvolume list /and then mount it:
mount -t btrfs -o subvolid=<id> /dev/sdXX /mnt
btrfs subvolume snapshot -r / /mnt/snapshot_$(date +%s)