Pacman hook that creates a btrfs snapshot with snapper prior to the operation as a system restore point
Find a file
James Barnett 1451753571 update
2016-03-11 10:26:22 -06:00
LICENSE Initial commit 2016-03-11 13:56:09 +00:00
README.md update 2016-03-11 10:26:22 -06:00
snapper-pac-post add cleanup algorithm 2016-03-11 09:59:23 -06:00
snapper-pac-pre add cleanup algorithm 2016-03-11 09:59:23 -06:00
snapper-post.hook update hook descriptions 2016-03-11 09:59:31 -06:00
snapper-pre.hook update hook descriptions 2016-03-11 09:59:31 -06:00

snap-pac

This makes Arch Linux's pacman use snapper to automatically takes a pre and post snapshot before and after pacman transactions, similar to how YaST does with OpenSuse.

Note: The scripts only take snapshots of the subvolume mounted at /; other subvolumes are not included. You must modify the scripts to include other subvolumes.

The scripts are set up to use the number algorithm. That is, snapper will periodically clean up snapshots tagged with number after reaching a set threshold in the configuration file.

See man alpm-hooks and man snapper for more information.

Installation

Install the package from the AUR.

That's it! Continue to use pacman as normal and watch snapper do its thing.