setup-cockpit/pacman_hooks/borg_backup.hook

12 lines
265 B
Text

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