Fix restoring from multi-host borg repo
This commit is contained in:
parent
0e63672dec
commit
8df2bcfe00
@ -10,7 +10,7 @@ export BORG_RSH='ssh -i /root/.ssh/storagebox'
|
||||
{% if provision.from_backup.name is defined %}
|
||||
RESTORE_FROM={{ provision.from_backup.name }}
|
||||
{% 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 %}
|
||||
|
||||
{% raw %}
|
||||
|
Loading…
Reference in New Issue
Block a user