feat: api's are hard okay
This commit is contained in:
parent
58e6fe4c6a
commit
6f4edd62e8
3 changed files with 8 additions and 8 deletions
|
@ -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
|
|
@ -4,7 +4,7 @@ ntfy() {
|
|||
sh /opt/scripts/ntfy.sh -s "/etc/ixvd/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
|
||||
}
|
||||
|
||||
ntfy -m "forgetting old backups..." -p "low"
|
||||
ntfy -m "forgetting old backups..." -p 2
|
||||
if restic \
|
||||
-r "/mnt/backups/restic/$(hostname)" \
|
||||
-p "/etc/ixvd/secrets/restic/$(hostname).secret" \
|
||||
|
@ -15,7 +15,7 @@ if restic \
|
|||
--keep-weekly 20 \
|
||||
--keep-monthly 6 \
|
||||
--keep-yearly 10; then
|
||||
ntfy -m "forget succeeded" -p "min"
|
||||
ntfy -m "forget succeeded" -p 1
|
||||
else
|
||||
ntfy -m "forget failed" -e "warning,skull" -p "urgent"
|
||||
ntfy -m "forget failed" -e "warning,skull" -p 5
|
||||
fi
|
||||
|
|
|
@ -9,7 +9,7 @@ if restic \
|
|||
-r "/mnt/backups/restic/$(hostname)" \
|
||||
-p "/etc/ixvd/secrets/restic/$(hostname).secret" \
|
||||
prune; then
|
||||
ntfy -m "pruning succeeded" -p "min"
|
||||
ntfy -m "pruning succeeded" -p 1
|
||||
else
|
||||
ntfy -m "prune failed" -e "warning,skull" -p "urgent"
|
||||
ntfy -m "prune failed" -e "warning,skull" -p 5
|
||||
fi
|
Loading…
Reference in a new issue