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
Merge requests
!136
Draft: Php 8.1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: Php 8.1
php-8.1
into
master
Overview
1
Commits
15
Pipelines
3
Changes
6
Closed
Vineet Reddy Rajula
requested to merge
php-8.1
into
master
2 years ago
Overview
1
Commits
15
Pipelines
3
Changes
6
Expand
0
0
Merge request reports
Compare
master
version 2
4b4a2ec5
2 years ago
version 1
433510d3
2 years ago
master (base)
and
latest version
latest version
37e4bf1a
15 commits,
2 years ago
version 2
4b4a2ec5
14 commits,
2 years ago
version 1
433510d3
13 commits,
2 years ago
6 files
+
116
−
19
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
images/drupal-operations-scripts/database-backup.sh
+
4
−
3
Options
@@ -31,11 +31,12 @@
# 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
# 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
--extra-dump
=
--no-tablespaces
>
$FILEPATH
## --max_allowed_packets to avoid https://stackoverflow.com/questions/8815445/mysqldump-error-got-packet-bigger-than-max-allowed-packet
drush sql-dump
--extra-dump
=
--no-tablespaces
--extra-dump
=
--max_allowed_packet
=
512M
>
$FILEPATH
else
echo
"Backing up database to /drupal-data/
$FILENAME
"
drush sql-dump
--extra-dump
=
--no-tablespaces
>
/drupal-data/
$FILENAME
drush sql-dump
--extra-dump
=
--no-tablespaces
--extra-dump
=
--max_allowed_packet
=
512M
>
/drupal-data/
$FILENAME
fi
Loading