[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