Ansible_workstation/files/dd_borg/automatic-backup.service

7 lines
252 B
SYSTEMD
Raw Normal View History

[Service]
Type=oneshot
ExecStart=/etc/backups/run.sh
ExecStopPost=-bash -c '[[ $EXIT_STATUS == 0 ]] && notify-send "Backup finished: Drive can be removed."'
ExecStopPost=-bash -c '[[ $EXIT_STATUS != 0 ]] && notify-send "Backup failed." -u critical'