Pacman hook that creates a btrfs snapshot with snapper prior to the operation as a system restore point
Find a file
2021-03-13 16:00:34 -05:00
.github update docs 2021-03-13 13:59:36 -05:00
docs add description 2021-03-13 15:37:54 -05:00
extra Add option to pass any userdata 2021-03-13 12:43:55 -05:00
hooks add option to link kernel modules 2018-01-19 11:06:00 -05:00
man8 add back manpage 2021-03-13 14:01:23 -05:00
scripts fix default userdata 2021-03-13 16:00:34 -05:00
tests Add option to pass any userdata 2021-03-13 12:43:55 -05:00
.gitignore ignore built docs 2021-03-13 05:23:08 -05:00
LICENSE Initial commit 2016-03-11 13:56:09 +00:00
Makefile Add test to Makefile 2021-03-11 19:41:15 -05:00
README.md add back manpage 2021-03-13 14:01:23 -05:00

snap-pac

Tests Docs

Synopsis

This is a set of pacman hooks and script that automatically causes snapper to perform a pre and post snapshot before and after pacman transactions, similar to how YaST does with OpenSuse. This provides a simple way to undo changes to a system after a pacman transaction.

Installation

Install the snap-pac package using pacman.

Alternatively download the latest release and signature , verify the download, and then run make install.

I have signed the release tarball and commits with my PGP key. Starting with release 2.2, the tarballs are signed with my key with fingerprint F7B28C61944FE30DABEEB0B01070BCC98C18BD66.

For previous releases, the key's fingerprint was 8535CEF3F3C38EE69555BF67E4B5E45AA3B8C5C3.

Configuration

Most likely, configuration is not needed. By default, the snapper configuration named root will have pre/post snapshots taken for every pacman transaction.

To configure, copy the example configuration file:

cp /etc/snap-pac.ini{.example,}

Then edit with your favorite editor. The file is commented and should be self-explanatory.

Documentation

See the documentation here or man 8 snap-pac after installation.

Troubleshooting

After reviewing the documentation, check the issues page and file a new issue if your problem is not covered.