14 lines
444 B
Desktop File
14 lines
444 B
Desktop File
[Unit]
|
|
Description=Borg Backup
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Nice=19
|
|
IOSchedulingClass=2
|
|
IOSchedulingPriority=7
|
|
ExecStartPre=notify-send "Backup starts"
|
|
ExecStartPre=/usr/bin/borg break-lock {{ borg_backup_repo }}
|
|
ExecStart={{ borg_script_path }}/{{ borg_script_filename }}
|
|
ExecStopPost=-bash -c '[[ $EXIT_STATUS == 0 ]] && notify-send "Backup finished"'
|
|
ExecStopPost=-bash -c '[[ $EXIT_STATUS != 0 ]] && notify-send "Backup failed." -u critical'
|