[Trigger] Type=Package Operation=Install Operation=Upgrade Operation=Remove Target=* [Action] Description=Making ZFS snapshot... Depends=zfs-utils When=PreTransaction Exec=/usr/bin/sh -c "/usr/bin/zfs snapshot -r $(/usr/bin/findmnt -n / | /usr/bin/awk '{print $2}')@$(date +%Y-%m-%d_%H-%M-%S)_pacman_pre" AbortOnFail NeedsTargets