LukeShortCloud / rootpages

Root Pages is a collection of easy-to-reference tutorials and guides primarily for Linux and other UNIX-like systems.
Other
57 stars 6 forks source link

[storage][file_systems] Create Btrfs Snapper configuration #429

Open LukeShortCloud opened 3 years ago

LukeShortCloud commented 3 years ago

Automatic:

$ sudo snapper -c root create-config /
$ sudo systemctl enable snapper-timeline.timer snapper-cleanup.timer

Manual:

$ sudo btrfs subvolume create /.snapshots
$ sudo cp /etc/snapper/config-templates/default /etc/snapper/configs/root
$ sudo vim /etc/conf.d/snapper
SNAPPER_CONFIGS="root"
$ sudo systemctl enable snapper-timeline.timer snapper-cleanup.timer

https://wiki.archlinux.org/title/snapper

LukeShortCloud commented 3 years ago

Note that there can NOT be a swap file on the Btrfs subvolume that is being used for snapshots. Moved it to its own subvolume first.

https://github.com/openSUSE/snapper/issues/483