This commit is contained in:
parent
6a82a8638d
commit
fd6d93d0cf
@ -11,7 +11,6 @@ let
|
|||||||
retval=$?
|
retval=$?
|
||||||
if [ $retval -ne 0 ]; then
|
if [ $retval -ne 0 ]; then
|
||||||
echo "Failed to send notification"
|
echo "Failed to send notification"
|
||||||
exit $retval
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do the backup
|
# Do the backup
|
||||||
@ -25,6 +24,12 @@ let
|
|||||||
if [ $retval -ne 0 ]; then
|
if [ $retval -ne 0 ]; then
|
||||||
${pkgs.libnotify}/bin/notify-send -u critical "Backup failed" "Backup of /home/torjus failed"
|
${pkgs.libnotify}/bin/notify-send -u critical "Backup failed" "Backup of /home/torjus failed"
|
||||||
retval=$?
|
retval=$?
|
||||||
|
if [ $retval -ne 0 ]; then
|
||||||
|
# TODO: put token in sops
|
||||||
|
${pkgs.curl}/bin/curl "https://gotify.t-juice.club/message?token=ABgV8XT62bxyCzF" \
|
||||||
|
-F "title=Backup of home@gunter failed!" \
|
||||||
|
-F "message=Please check status of backup-home service"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove old snapshots and prune
|
# Remove old snapshots and prune
|
||||||
|
Loading…
Reference in New Issue
Block a user