From 9b3ad327646a852e8cbe152a7e9b8d9d988e9bf1 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 15 Dec 2022 15:09:39 +0100 Subject: [PATCH] fix restoring of elasticsearch volume Signed-off-by: Simon L --- Containers/borgbackup/backupscript.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index 7640d441..397cf700 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -259,7 +259,8 @@ if [ "$BORG_MODE" = restore ]; then # Restore everything except the configuration file if ! rsync --stats --archive --human-readable -vv --delete \ --exclude "nextcloud_aio_apache/caddy/"** \ - --exclude "nextcloud_aio_elasticsearch" \ + --exclude "nextcloud_aio_elasticsearch/" \ + --include "nextcloud_aio_elasticsearch/"** \ --exclude "nextcloud_aio_mastercontainer/caddy/"** \ --exclude "nextcloud_aio_mastercontainer/certs/"** \ --exclude "nextcloud_aio_mastercontainer/data/configuration.json" \