feat: add prios to messages

This commit is contained in:
Strix 2023-10-18 23:07:17 +02:00
parent 29a9f2579d
commit 0777750de1
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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