From 4fe6ce5861e82be8d94acdc43f52c282567a323a Mon Sep 17 00:00:00 2001 From: Raine Date: Wed, 6 Dec 2023 21:46:58 +0100 Subject: [PATCH] fix: change prio's for backups --- skel/etc/ixvd/version | 2 +- skel/opt/scripts/restic/backup.sh | 4 ++-- skel/opt/scripts/restic/prune.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/skel/etc/ixvd/version b/skel/etc/ixvd/version index d8263ee..e440e5c 100644 --- a/skel/etc/ixvd/version +++ b/skel/etc/ixvd/version @@ -1 +1 @@ -2 \ No newline at end of file +3 \ No newline at end of file diff --git a/skel/opt/scripts/restic/backup.sh b/skel/opt/scripts/restic/backup.sh index 940e7d8..37c213f 100755 --- a/skel/opt/scripts/restic/backup.sh +++ b/skel/opt/scripts/restic/backup.sh @@ -4,14 +4,14 @@ ntfy() { bash /opt/scripts/ntfy.sh -s "/etc/ixvd/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@" } -ntfy -m "performing backup..." -p 2 +ntfy -m "performing backup..." -p 1 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 2 + ntfy -m "backup succeeded" -p 1 else ntfy -m "backup failed" -e "warning,skull" -p 5 fi \ No newline at end of file diff --git a/skel/opt/scripts/restic/prune.sh b/skel/opt/scripts/restic/prune.sh index c7fa423..49f31d2 100755 --- a/skel/opt/scripts/restic/prune.sh +++ b/skel/opt/scripts/restic/prune.sh @@ -4,7 +4,7 @@ ntfy() { bash /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 3 if restic \ -r "/mnt/backups/restic/$(hostname)" \ -p "/etc/ixvd/secrets/restic/$(hostname).secret" \