From 0777750de110647f0effc27de8efebfd8faee753 Mon Sep 17 00:00:00 2001 From: Raine Date: Wed, 18 Oct 2023 23:07:17 +0200 Subject: [PATCH] feat: add prios to messages --- skel/opt/scripts/restic/backup.sh | 2 +- skel/opt/scripts/restic/forget.sh | 2 +- skel/opt/scripts/restic/prune.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/skel/opt/scripts/restic/backup.sh b/skel/opt/scripts/restic/backup.sh index 89252ca..15f04b3 100644 --- a/skel/opt/scripts/restic/backup.sh +++ b/skel/opt/scripts/restic/backup.sh @@ -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 \ No newline at end of file diff --git a/skel/opt/scripts/restic/forget.sh b/skel/opt/scripts/restic/forget.sh index efd8494..b90e13d 100644 --- a/skel/opt/scripts/restic/forget.sh +++ b/skel/opt/scripts/restic/forget.sh @@ -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 diff --git a/skel/opt/scripts/restic/prune.sh b/skel/opt/scripts/restic/prune.sh index d80b9a7..09d5f6a 100644 --- a/skel/opt/scripts/restic/prune.sh +++ b/skel/opt/scripts/restic/prune.sh @@ -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 \ No newline at end of file