From 5204ea633f0d3cf4b284852a5843f16ea8df5245 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 12 Sep 2024 16:37:59 +0200 Subject: [PATCH] borgbackup: also check for .ncdata Signed-off-by: Simon L. --- Containers/borgbackup/backupscript.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index f2e9d04e..739d5f16 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -71,8 +71,8 @@ if [ "$BORG_MODE" = backup ]; then echo "database-dump is missing. Cannot perform backup!" echo "Please check the database container logs!" exit 1 - elif ! [ -f "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/.ocdata" ]; then - echo "The .ocdata file is missing in Nextcloud datadir which means it is invalid!" + elif ! [ -f "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/.ocdata" ] && ! [ -f "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/.ncdata" ]; then + echo "The .ncdata or .ocdata file is missing in Nextcloud datadir which means it is invalid!" echo "Is the drive where the datadir is located on still mounted?" exit 1 fi