Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
D
Drupal Helpers
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Colan Schwartz
Drupal Helpers
Commits
5a557c11
Commit
5a557c11
authored
Dec 30, 2013
by
Colan Schwartz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't drop cache tables; they should be truncated instead.
parent
c57c7a7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
scripts/mysql-backup-databases
scripts/mysql-backup-databases
+3
-1
No files found.
scripts/mysql-backup-databases
View file @
5a557c11
...
...
@@ -60,7 +60,9 @@ do
DATE
=
$(
date
"+%y%m%d%H%M"
)
DST_FILE
=
"
$BACKUPDIR
/
$DATABASE
-
$DATE
.sql.gz"
LINK_TARGET
=
"
$BACKUPDIR
/
$DATABASE
-LATEST.sql.gz"
mysqldump
$OPTS
$IGNORETABLES
$DATABASE
|
gzip
>
$DST_FILE
# Should probably truncate these tables afterwards instead.
# mysqldump $OPTS $IGNORETABLES $DATABASE | gzip > $DST_FILE
mysqldump
$OPTS
$DATABASE
|
gzip
>
$DST_FILE
chmod
440
$DST_FILE
chgrp
$owner_group
$DST_FILE
ln
-sf
$DST_FILE
$LINK_TARGET
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment