[Trigger] Operation = Install Type = Package Target = * [Action] Description = Create ZFS snapshot on active system dataset When = PreTransaction Exec = /bin/sh -c 'while read -r f; do echo "$f"; done | /usr/local/bin/pacman-zfs-snapshot install' Depends = zfs-auto-snapshot AbortOnFail NeedsTargets