Skip to content

Instantly share code, notes, and snippets.

@liljenstolpe
liljenstolpe / 10-snapshot.hook
Created July 17, 2022 23:53 — forked from Frederick888/10-snapshot.hook
Simple pacman hook to take ZFS snapshots
[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=*
[Action]
When=PreTransaction
Exec=/usr/local/bin/pacman-snapshots.sh