Skip to main content
Topic: BTRFS + SNAPPER configuration (Read 1537 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

BTRFS + SNAPPER configuration

Hi all,

I have question for configuration snapper in artix linux - openRC.
Please how to add snapper to automatically create snapshots (I have find for set with cronie, but I don't know how).
How to add snapshots item to GRUB2 window after start for rollback and how to roll back.

Is possible to restore system, if I have snapshot on another medium?

I have search, but all instuctions are for systemD  >:(

Thx for you time.

Re: BTRFS + SNAPPER configuration

Reply #1
To add snapshoots to grup use update-grub.
Automatic create snapshoots use cron.


 

Re: BTRFS + SNAPPER configuration

Reply #3
Why did you create a separate @snapshots subvolume? I still haven't played around snapper a lot, but AFAIK your snapshots of @ subvol are subsubvolumes of @. snapper creates them automatically, as well as /.snapshots directory after you run

Code: [Select]
# snapper -c root create-config /

This will also create /etc/snapper/configs/root file, in which you can configure your timeline snapshots (just be sure that option TIMELINE_CREATE="yes" is enabled). snapper will use cron automatically AFAIK. It is packed with /etc/cron.whatever/* files.

To add snapshoots to grup use update-grub.
Just install the grub-btrfs package. It adds necessary hooks to update-grub.