feat: even better prios

This commit is contained in:
Strix 2023-10-18 23:12:25 +02:00
parent 0777750de1
commit 58e6fe4c6a
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
3 changed files with 7 additions and 7 deletions

View file

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