diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index d90f02a5..8d23eca9 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -66,7 +66,7 @@ if [ "$BORG_MODE" = backup ]; then # Test that nothing is empty for directory in "${VOLUME_DIRS[@]}"; do - if [ -z "$(ls -A "$directory")" ]; then + if [ -z "$(ls -A "$directory")" ] && [ "$directory" != "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch" ]; then echo "$directory is empty which is not allowed." exit 1 fi diff --git a/php/containers.json b/php/containers.json index 9412ed63..b603fe09 100644 --- a/php/containers.json +++ b/php/containers.json @@ -290,6 +290,11 @@ "name": "%BORGBACKUP_HOST_LOCATION%", "location": "/mnt/borgbackup", "writeable": true + }, + { + "name": "nextcloud_aio_elasticsearch", + "location": "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch", + "writeable": true } ], "secrets": [