feat: api's are hard okay

This commit is contained in:
Strix 2023-10-18 23:17:28 +02:00
parent 58e6fe4c6a
commit 6f4edd62e8
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
3 changed files with 8 additions and 8 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..." -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