chore(restic): add optional unlock step before check

fixes: https://github.com/famedly/infra-meta/issues/1525
This commit is contained in:
Evelyn Alicke 2024-06-11 10:58:35 +02:00
parent b757f65f0f
commit 44a79890d5
No known key found for this signature in database
GPG key ID: 6834780BDA479436
2 changed files with 5 additions and 0 deletions

View file

@ -11,6 +11,8 @@ restic_backup_paths: []
restic_backup_commands: []
restic_backup_parameters: {}
restic_stale_unlock: true
restic_systemd_user: root
restic_systemd_unit_name: "restic"
restic_systemd_service_name: "{{ restic_systemd_unit_name }}.service"

View file

@ -35,6 +35,9 @@ ExecStart={{ restic_binary }} backup {{ restic_backup_paths | join(' ') }}{% if
{% endif %}
ExecStartPost=-{{ restic_binary }} snapshots
{% if restic_stale_unlock -%}
ExecStartPost={{ restic_binary }} unlock
{% endif -%}
ExecStartPost={{ restic_binary }} check
[Install]