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