From b538bc7155bd82b6aebe5f7e76a8300672164606 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Fri, 4 Jul 2025 19:31:51 +0200 Subject: [PATCH] restore-instance: make hint more visible that backup needs to be restored two times if the backup contained any community container data Signed-off-by: Simon L. --- php/templates/containers.twig | 4 ++-- php/tests/tests/restore-instance.spec.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/php/templates/containers.twig b/php/templates/containers.twig index 6d50efd4..8f917380 100644 --- a/php/templates/containers.twig +++ b/php/templates/containers.twig @@ -163,7 +163,7 @@ {% endif %}

Choose the backup that you want to restore and click on the button below to restore the selected backup. This will restore the whole AIO instance. Please note that the current AIO passphrase will be kept and the previous AIO passphrase will not be restored from backup!

-

Please note: If the backup that you want to restore contained any community container, but you did not specify the same community containers via environmental variable while creating this new AIO instance, you need to restore the same backup a second time after this attempt so that the community container data is also correctly restored.

+

Important: If the backup that you want to restore contained any community container, you need to restore the same backup a second time after this attempt so that the community container data is also correctly restored.

@@ -173,7 +173,7 @@ {% endfor %}

- +
{% endif %} {% elseif borg_backup_mode == 'restore' %} diff --git a/php/tests/tests/restore-instance.spec.js b/php/tests/tests/restore-instance.spec.js index 217218e5..c16f6700 100644 --- a/php/tests/tests/restore-instance.spec.js +++ b/php/tests/tests/restore-instance.spec.js @@ -59,6 +59,10 @@ test('Restore instance', async ({ page: setupPage }) => { // Check integrity and restore backup await containersPage.getByRole('button', { name: 'Check backup integrity' }).click(); await expect(containersPage.getByRole('main')).toContainText('Last check successful!', { timeout: 5 * 60 * 1000 }); + containersPage.once('dialog', dialog => { + console.log(`Dialog message: ${dialog.message()}`) + dialog.accept() + }); await containersPage.getByRole('button', { name: 'Restore selected backup' }).click(); await expect(containersPage.getByRole('main')).toContainText('Backup container is currently running:', { timeout: 1 * 60 * 1000 });