Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: fruti on 07 January 2021, 15:54:00

Title: BTRFS + SNAPPER configuration
Post by: fruti on 07 January 2021, 15:54:00
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.
Title: Re: BTRFS + SNAPPER configuration
Post by: fruti on 18 January 2021, 16:10:24
To add snapshoots to grup use update-grub.
Automatic create snapshoots use cron.
Title: Re: BTRFS + SNAPPER configuration
Post by: alium on 18 January 2021, 16:43:46
To add snapshoots to grup use update-grub.
Automatic create snapshoots use cron.
hi, is that the answer to your question? put here the links with systemd solution please
Title: Re: BTRFS + SNAPPER configuration
Post by: VictorBrand on 18 January 2021, 16:52:27
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.