Merge pull request from nextcloud/enh/noid/improve-borg-backup-check

borgbackup: also check for .ncdata
This commit is contained in:
Simon L. 2024-09-16 16:06:21 +02:00 committed by GitHub
commit 959f067598
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,8 +71,8 @@ if [ "$BORG_MODE" = backup ]; then
echo "database-dump is missing. Cannot perform backup!" echo "database-dump is missing. Cannot perform backup!"
echo "Please check the database container logs!" echo "Please check the database container logs!"
exit 1 exit 1
elif ! [ -f "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/.ocdata" ]; then elif ! [ -f "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/.ocdata" ] && ! [ -f "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/.ncdata" ]; then
echo "The .ocdata file is missing in Nextcloud datadir which means it is invalid!" 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?" echo "Is the drive where the datadir is located on still mounted?"
exit 1 exit 1
fi fi