From 127d715aff73e2cfc86430e9c63703b7a9da491b Mon Sep 17 00:00:00 2001 From: Vineet Reddy Rajula <rajula.vineet.reddy@cern.ch> Date: Tue, 5 Apr 2022 10:51:05 +0200 Subject: [PATCH] Add --no-tablespaces to sql-dump command --- images/drupal-operations-scripts/database-backup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/images/drupal-operations-scripts/database-backup.sh b/images/drupal-operations-scripts/database-backup.sh index cbbbfaad2..45ed2dced 100755 --- a/images/drupal-operations-scripts/database-backup.sh +++ b/images/drupal-operations-scripts/database-backup.sh @@ -30,10 +30,12 @@ cd /app # Database backup +# Need to add --extra-dump=--no-tablespaces to drush sql-dump to be compatible since MySQL 5.7 +# https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-31.html#mysqld-5-7-31-security if [[ ! -z "$FILEPATH" ]]; then echo "Backing up database to $FILEPATH" - drush sql-dump > $FILEPATH + drush sql-dump --extra-dump=--no-tablespaces > $FILEPATH else echo "Backing up database to /drupal-data/$FILENAME" - drush sql-dump > /drupal-data/$FILENAME + drush sql-dump --extra-dump=--no-tablespaces > /drupal-data/$FILENAME fi -- GitLab