diff --git a/coreos-config/templates/restore.sh.j2 b/coreos-config/templates/restore.sh.j2 index 09f461d..90ea642 100755 --- a/coreos-config/templates/restore.sh.j2 +++ b/coreos-config/templates/restore.sh.j2 @@ -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 %}