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
|
||||
ntfy -m "backup succeeded"
|
||||
else
|
||||
ntfy -m "backup failed" -e "warning,skull"
|
||||
ntfy -m "backup failed" -e "warning,skull" -p "urgent"
|
||||
fi
|
|
@ -17,5 +17,5 @@ if restic \
|
|||
--keep-yearly 10; then
|
||||
ntfy -m "forget succeeded"
|
||||
else
|
||||
ntfy -m "forget failed" -e "warning,skull"
|
||||
ntfy -m "forget failed" -e "warning,skull" -p "urgent"
|
||||
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" "$@"
|
||||
}
|
||||
|
||||
ntfy -m "pruning old backups..."
|
||||
ntfy -m "pruning old backups..." -p "urgent"
|
||||
if restic \
|
||||
-r "/mnt/backups/restic/$(hostname)" \
|
||||
-p "/etc/ixvd/secrets/restic/$(hostname).secret" \
|
||||
prune; then
|
||||
notify -m "pruning succeeded"
|
||||
else
|
||||
notify -m "prune failed" -e "warning,skull"
|
||||
notify -m "prune failed" -e "warning,skull" -p "urgent"
|
||||
fi
|
Loading…
Reference in a new issue