Pacman hook that creates a btrfs snapshot with snapper prior to the operation as a system restore point
Find a file
2021-02-15 20:37:10 -05:00
.github update tests, linting 2021-02-15 20:34:58 -05:00
extra Update manpage and comment example configuration 2021-02-14 17:56:14 -05:00
hooks add option to link kernel modules 2018-01-19 11:06:00 -05:00
man8 Update manpage and comment example configuration 2021-02-14 17:56:14 -05:00
scripts more tests 2021-02-15 11:55:04 -05:00
.gitignore Refactor for unit tests 2021-02-14 16:41:31 -05:00
LICENSE Initial commit 2016-03-11 13:56:09 +00:00
Makefile Create SnapperCmd class 2021-02-15 08:42:03 -05:00
README.md rename workflow 2021-02-14 18:08:19 -05:00
test_script.py update tests, linting 2021-02-15 20:34:58 -05:00

snap-pac

Tests

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. The key's fingerprint is 8535CEF3F3C38EE69555BF67E4B5E45AA3B8C5C3.

Starting with release 2.2, the tarballs are signed with my key with fingerprint F7B2 8C61 944F E30D ABEE B0B0 1070 BCC9 8C18 BD66.

Configuration

An commented example configuration file is located at extras/snap-pac.ini which is installed to /etc/snap-pac.ini.example. By default only the snapper configuration named root has snapshots taken before and after pacman transactions. See the example configuration file for how to add other snapper configurations.

Documentation

Run man 8 snap-pac after installation.

Troubleshooting

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