From 0be0c00a2ca5fd243151f453559388978817a7f6 Mon Sep 17 00:00:00 2001 From: Simon L Date: Tue, 9 Jan 2024 13:17:24 +0100 Subject: [PATCH] borgbackup - add check for .ocdata file for datadir Signed-off-by: Simon L --- Containers/borgbackup/backupscript.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Containers/borgbackup/backupscript.sh b/Containers/borgbackup/backupscript.sh index 41394ad6..f2e9d04e 100644 --- a/Containers/borgbackup/backupscript.sh +++ b/Containers/borgbackup/backupscript.sh @@ -69,6 +69,11 @@ if [ "$BORG_MODE" = backup ]; then exit 1 elif ! [ -f "/nextcloud_aio_volumes/nextcloud_aio_database_dump/database-dump.sql" ]; 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!" + echo "Is the drive where the datadir is located on still mounted?" exit 1 fi