ansible/roles/docker/templates/restic/success.sh.j2
Reynir Björnsson 948b0baf44 Restic: handle incomplete backups as success
If we don't have a POST_COMMANDS_INCOMPLETE then POST_COMMANDS_FAILURE
will trigger. This may be a bit misleading as we are doing backups of
live systems and it is almost expected that a file will change or
disappear during backup. Instead, we report backup as "up" with a
message that the backup was incomplete.
2025-02-12 09:42:07 +01:00

2 lines
86 B
Django/Jinja

#!/bin/sh
curl --silent '{{ restic_secrets.uptime_kuma_url }}?status=up&msg=OK&ping='