feat: even better prios
This commit is contained in:
parent
0777750de1
commit
58e6fe4c6a
3 changed files with 7 additions and 7 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..."
|
||||
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
|
|
@ -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..."
|
||||
ntfy -m "forgetting old backups..." -p "low"
|
||||
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"
|
||||
ntfy -m "forget succeeded" -p "min"
|
||||
else
|
||||
ntfy -m "forget failed" -e "warning,skull" -p "urgent"
|
||||
fi
|
||||
|
|
|
@ -4,12 +4,12 @@ ntfy() {
|
|||
sh /opt/scripts/ntfy.sh -s "/etc/ixvd/secrets/ntfy/ixvd-backups" -u "https://push.ixvd.net/ixvd-backups" "$@"
|
||||
}
|
||||
|
||||
ntfy -m "pruning old backups..." -p "urgent"
|
||||
ntfy -m "pruning old backups..."
|
||||
if restic \
|
||||
-r "/mnt/backups/restic/$(hostname)" \
|
||||
-p "/etc/ixvd/secrets/restic/$(hostname).secret" \
|
||||
prune; then
|
||||
notify -m "pruning succeeded"
|
||||
ntfy -m "pruning succeeded" -p "min"
|
||||
else
|
||||
notify -m "prune failed" -e "warning,skull" -p "urgent"
|
||||
ntfy -m "prune failed" -e "warning,skull" -p "urgent"
|
||||
fi
|
Loading…
Reference in a new issue