From 58e6fe4c6a23081d86b65a38c34b6757576f7dcb Mon Sep 17 00:00:00 2001 From: Raine Date: Wed, 18 Oct 2023 23:12:25 +0200 Subject: [PATCH] feat: even better prios --- skel/opt/scripts/restic/backup.sh | 4 ++-- skel/opt/scripts/restic/forget.sh | 4 ++-- skel/opt/scripts/restic/prune.sh | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/skel/opt/scripts/restic/backup.sh b/skel/opt/scripts/restic/backup.sh index 15f04b3..2c6ac58 100644 --- a/skel/opt/scripts/restic/backup.sh +++ b/skel/opt/scripts/restic/backup.sh @@ -4,14 +4,14 @@ ntfy() { sh /opt/scripts/ntfy.sh -s "/etc/ixvd/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@" } -ntfy -m "performing backup..." +ntfy -m "performing backup..." -p "low" if restic \ -r "/mnt/backups/restic/$(hostname)" \ -p "/etc/ixvd/secrets/restic/$(hostname).secret" \ backup \ --tag auto \ /srv /home /etc; then - ntfy -m "backup succeeded" + ntfy -m "backup succeeded" -p "low" else 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 b90e13d..5357a19 100644 --- a/skel/opt/scripts/restic/forget.sh +++ b/skel/opt/scripts/restic/forget.sh @@ -4,7 +4,7 @@ ntfy() { sh /opt/scripts/ntfy.sh -s "/etc/ixvd/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@" } -ntfy -m "forgetting old backups..." +ntfy -m "forgetting old backups..." -p "low" if restic \ -r "/mnt/backups/restic/$(hostname)" \ -p "/etc/ixvd/secrets/restic/$(hostname).secret" \ @@ -15,7 +15,7 @@ if restic \ --keep-weekly 20 \ --keep-monthly 6 \ --keep-yearly 10; then - ntfy -m "forget succeeded" + ntfy -m "forget succeeded" -p "min" else 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 09d5f6a..5e4896b 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..." -p "urgent" +ntfy -m "pruning old backups..." if restic \ -r "/mnt/backups/restic/$(hostname)" \ -p "/etc/ixvd/secrets/restic/$(hostname).secret" \ prune; then - notify -m "pruning succeeded" + ntfy -m "pruning succeeded" -p "min" else - notify -m "prune failed" -e "warning,skull" -p "urgent" + ntfy -m "prune failed" -e "warning,skull" -p "urgent" fi \ No newline at end of file