feat: add prios to messages
This commit is contained in:
parent
29a9f2579d
commit
0777750de1
3 changed files with 4 additions and 4 deletions
|
@ -13,5 +13,5 @@ if restic \
|
||||||
/srv /home /etc; then
|
/srv /home /etc; then
|
||||||
ntfy -m "backup succeeded"
|
ntfy -m "backup succeeded"
|
||||||
else
|
else
|
||||||
ntfy -m "backup failed" -e "warning,skull"
|
ntfy -m "backup failed" -e "warning,skull" -p "urgent"
|
||||||
fi
|
fi
|
|
@ -17,5 +17,5 @@ if restic \
|
||||||
--keep-yearly 10; then
|
--keep-yearly 10; then
|
||||||
ntfy -m "forget succeeded"
|
ntfy -m "forget succeeded"
|
||||||
else
|
else
|
||||||
ntfy -m "forget failed" -e "warning,skull"
|
ntfy -m "forget failed" -e "warning,skull" -p "urgent"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -4,12 +4,12 @@ ntfy() {
|
||||||
sh /opt/scripts/ntfy.sh -s "/etc/ixvd/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
|
sh /opt/scripts/ntfy.sh -s "/etc/ixvd/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
ntfy -m "pruning old backups..."
|
ntfy -m "pruning old backups..." -p "urgent"
|
||||||
if restic \
|
if restic \
|
||||||
-r "/mnt/backups/restic/$(hostname)" \
|
-r "/mnt/backups/restic/$(hostname)" \
|
||||||
-p "/etc/ixvd/secrets/restic/$(hostname).secret" \
|
-p "/etc/ixvd/secrets/restic/$(hostname).secret" \
|
||||||
prune; then
|
prune; then
|
||||||
notify -m "pruning succeeded"
|
notify -m "pruning succeeded"
|
||||||
else
|
else
|
||||||
notify -m "prune failed" -e "warning,skull"
|
notify -m "prune failed" -e "warning,skull" -p "urgent"
|
||||||
fi
|
fi
|
Loading…
Reference in a new issue