Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cern-drupal-distribution
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal
paas
cern-drupal-distribution
Commits
ab3a8bd0
Commit
ab3a8bd0
authored
3 years ago
by
Konstantinos Samaras-Tsakiris
Browse files
Options
Downloads
Patches
Plain Diff
Merge branch 'sqldump-notables' into 'master'
parent
32afe0a9
No related branches found
No related tags found
1 merge request
!110
Merge branch 'sqldump-notables' into 'master'
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
images/drupal-operations-scripts/database-backup.sh
+4
-2
4 additions, 2 deletions
images/drupal-operations-scripts/database-backup.sh
with
4 additions
and
2 deletions
images/drupal-operations-scripts/database-backup.sh
+
4
−
2
View file @
ab3a8bd0
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment