Fix restoring from multi-host borg repo

This commit is contained in:
Tobias Manske 2023-02-28 20:22:25 +01:00
parent 0e63672dec
commit 8df2bcfe00
Signed by: tobias
GPG Key ID: E83C743C1FC2F79A

View File

@ -10,7 +10,7 @@ export BORG_RSH='ssh -i /root/.ssh/storagebox'
{% if provision.from_backup.name is defined %} {% if provision.from_backup.name is defined %}
RESTORE_FROM={{ provision.from_backup.name }} RESTORE_FROM={{ provision.from_backup.name }}
{% else %} {% else %}
RESTORE_FROM=$(borg list --short --sort-by timestamp --last 1) RESTORE_FROM=$(borg list --short --sort-by timestamp --last 1 --glob-archives "{hostname}*")
{% endif %} {% endif %}
{% raw %} {% raw %}