Skip to content

Commit

Permalink
Merge pull request #3642 from nextcloud/enh/noid/backup-additional-vo…
Browse files Browse the repository at this point in the history
…lumes
  • Loading branch information
szaimen authored Oct 30, 2023
2 parents 54c806c + 918afa1 commit ebca544
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Containers/borgbackup/backupscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ if [ "$BORG_MODE" = backup ]; then
exit 1
fi

# Test that nothing is empty
for directory in "${VOLUME_DIRS[@]}"; do
if [ -z "$(ls -A "$directory")" ] && [ "$directory" != "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch" ]; then
echo "$directory is empty which is not allowed."
# Test that default volumes are not empty
for volume in "${DEFAULT_VOLUMES[@]}"; do
if [ -z "$(ls -A "/nextcloud_aio_volumes/$volume")" ] && [ "$volume" != "nextcloud_aio_elasticsearch" ]; then
echo "/nextcloud_aio_volumes/$volume is empty which should not happen!"
exit 1
fi
done
Expand Down

0 comments on commit ebca544

Please sign in to comment.