ansible-role-backup-client/templates/backup-check.j2
2021-03-27 12:57:26 +01:00

14 lines
257 B
Django/Jinja
Executable file

#!/bin/bash
set -euo pipefail
{% if backup_backend == 'restic' %}
# restic backend
source /etc/backup-client/restic.env
restic check --read-data --cleanup-cache
{% endif %}
{% if not backup_backend %}
echo "Noop, backup is handled external"
{% endif %}