From 6f4edd62e88fc181d11039637409a0c0698ae02f Mon Sep 17 00:00:00 2001 From: Raine Date: Wed, 18 Oct 2023 23:17:28 +0200 Subject: [PATCH] feat: api's are hard okay --- skel/opt/scripts/restic/backup.sh | 6 +++--- skel/opt/scripts/restic/forget.sh | 6 +++--- skel/opt/scripts/restic/prune.sh | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/skel/opt/scripts/restic/backup.sh b/skel/opt/scripts/restic/backup.sh index 2c6ac58..3778a2f 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..." -p "low" +ntfy -m "performing backup..." -p 2 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" -p "low" + ntfy -m "backup succeeded" -p 2 else - ntfy -m "backup failed" -e "warning,skull" -p "urgent" + ntfy -m "backup failed" -e "warning,skull" -p 5 fi \ No newline at end of file diff --git a/skel/opt/scripts/restic/forget.sh b/skel/opt/scripts/restic/forget.sh index 5357a19..14cfa2f 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..." -p "low" +ntfy -m "forgetting old backups..." -p 2 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" -p "min" + ntfy -m "forget succeeded" -p 1 else - ntfy -m "forget failed" -e "warning,skull" -p "urgent" + ntfy -m "forget failed" -e "warning,skull" -p 5 fi diff --git a/skel/opt/scripts/restic/prune.sh b/skel/opt/scripts/restic/prune.sh index 5e4896b..dae392f 100644 --- a/skel/opt/scripts/restic/prune.sh +++ b/skel/opt/scripts/restic/prune.sh @@ -9,7 +9,7 @@ if restic \ -r "/mnt/backups/restic/$(hostname)" \ -p "/etc/ixvd/secrets/restic/$(hostname).secret" \ prune; then - ntfy -m "pruning succeeded" -p "min" + ntfy -m "pruning succeeded" -p 1 else - ntfy -m "prune failed" -e "warning,skull" -p "urgent" + ntfy -m "prune failed" -e "warning,skull" -p 5 fi \ No newline at end of file