Skip to content

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

3 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
151pt79

Author

8
posts
39
comments
1
media
View profile

3 comments

Snapshots do not recurse into other subvolumes. This can be nice because having /var/cache on its own subvolume won't be captured in your snapshot.

So no, you'll need to set up @home snapshots separately.

5 points

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

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.