From 8df2bcfe00d67656787ac2ddba6f25ffd204fdf1 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Tue, 28 Feb 2023 20:22:25 +0100 Subject: [PATCH] Fix restoring from multi-host borg repo --- coreos-config/templates/restore.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %}