setup-cockpit/dotfiles/pacman_hooks/borg_backup.hook

12 lines
267 B
Text

[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Description = Borg backup
When = PreTransaction
Exec = /bin/bash -c 'source /home/*/setup-cockpit/secrets && /home/*/setup-cockpit/borg_backup.sh'
Depends = borg