2026-08-03 12:26:42 +08:00
|
|
|
#!/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 }}'
|
2026-08-12 17:35:23 +08:00
|
|
|
exec '{{ restic_binary }}' backup --tag '{{ restic_backup_profile }}' --tag "$(hostname -s)" {% for source in restic_sources[restic_backup_profile] %}{{ source | quote }} {% endfor %}
|