Skip to content

Commit

Permalink
Merge pull request #4021 from nextcloud/enh/4006/datadir-check
Browse files Browse the repository at this point in the history
borgbackup - add check for .ocdata file for datadir
  • Loading branch information
szaimen authored Jan 10, 2024
2 parents 6e8fee9 + 0be0c00 commit 6b47d8d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Containers/borgbackup/backupscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6b47d8d

Please sign in to comment.