Clarification on BTRFS subvolume snapshots; does the @ subvolume contain the other subvolumes within it?
Had a long day, and struggling to find a definitive answer on this. Setup was using the default subvolumes as defined by the Archinstall script, if it makes a difference.
I have an @ subvolume which is aimed at /
I have an @home which is aimed at /home
So if I create a snapshot of @, will that also contain all the data that is in @home? Or are they separate? My understanding is that they are separate (as it's essentially the same as a separate /home partition in lvm terms, and I can think of the snapshot as backing up a partition), but am struggling to word it in a way to find a definitive answer online, and want to make sure I schedule my snapshot timings accordingly.
Thanks
About this post
- Posted
- Archived
- Score
- 3 · 100% up
- Kind
- Text
- ID
- 151pt79
3 comments
Snapshots do not recurse into other subvolumes. This can be nice because having
/var/cacheon its own subvolume won't be captured in your snapshot.So no, you'll need to set up @home snapshots separately.
Thank you!
no, but you could technically snapshot them again, it makes sense to leave these out: var/cache, var/log
about var/tmp, /tmp im not sure, i think btrfs ignores them anyways