fix: change prio's for backups

This commit is contained in:
Strix 2023-12-06 21:46:58 +01:00
parent 9dd0794702
commit 4fe6ce5861
No known key found for this signature in database
GPG key ID: 5F35B3B8537287A7
3 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
2
3

View file

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

View file

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