8 lines
293 B
Desktop File
8 lines
293 B
Desktop File
[Service]
|
|
Type=oneshot
|
|
ExecStartPre=notify-send "Backup starts"
|
|
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'
|
|
|