fix: change prio's for backups
This commit is contained in:
parent
9dd0794702
commit
4fe6ce5861
3 changed files with 4 additions and 4 deletions
|
@ -1 +1 @@
|
||||||
2
|
3
|
|
@ -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
|
|
@ -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" \
|
||||||
|
|
Loading…
Reference in a new issue