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" "$@" 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 \ if restic \
-r "/mnt/backups/restic/$(hostname)" \ -r "/mnt/backups/restic/$(hostname)" \
-p "/etc/ixvd/secrets/restic/$(hostname).secret" \ -p "/etc/ixvd/secrets/restic/$(hostname).secret" \
backup \ backup \
--tag auto \ --tag auto \
/srv /home /etc; then /srv /home /etc; then
ntfy -m "backup succeeded" -p 2 ntfy -m "backup succeeded" -p 1
else else
ntfy -m "backup failed" -e "warning,skull" -p 5 ntfy -m "backup failed" -e "warning,skull" -p 5
fi 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" "$@" 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 \ if restic \
-r "/mnt/backups/restic/$(hostname)" \ -r "/mnt/backups/restic/$(hostname)" \
-p "/etc/ixvd/secrets/restic/$(hostname).secret" \ -p "/etc/ixvd/secrets/restic/$(hostname).secret" \