#!/usr/bin/env bash set -euo pipefail # Repository and password credentials are host-local in {{ restic_config_path }}. # shellcheck source=/dev/null source '{{ restic_config_path }}' exec '{{ restic_binary }}' backup --tag '{{ restic_backup_profile }}' --tag "$(hostname -s)" {% for source in restic_sources[restic_backup_profile] %}{{ source | quote }} {% endfor %}