2019-08-05 19:36:31 +00:00
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
ExecStart=/etc/backups/run.sh
|
2020-02-23 04:41:35 +00:00
|
|
|
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'
|
2019-08-05 19:36:31 +00:00
|
|
|
|