Pacman hook that creates a btrfs snapshot with snapper prior to the operation as a system restore point
Find a file
Wes Barnett 3e56f55087
Docs
2021-03-11 19:50:05 -05:00
.github update tests to find script 2021-02-27 09:28:44 -05:00
docs Docs 2021-03-11 19:50:05 -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 use pathlib 2021-02-27 21:10:22 -05:00
source Docs 2021-03-11 19:50:05 -05:00
tests use pathlib 2021-02-27 21:10:22 -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
make.bat Docs 2021-03-11 19:50:05 -05:00
Makefile Docs 2021-03-11 19:50:05 -05:00
README.md update README 2021-02-28 09:24:19 -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. 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

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.