Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
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
...
@@ -60,7 +60,9 @@ do
DATE
=
$(
date
"+%y%m%d%H%M"
)
DATE
=
$(
date
"+%y%m%d%H%M"
)
DST_FILE
=
"
$BACKUPDIR
/
$DATABASE
-
$DATE
.sql.gz"
DST_FILE
=
"
$BACKUPDIR
/
$DATABASE
-
$DATE
.sql.gz"
LINK_TARGET
=
"
$BACKUPDIR
/
$DATABASE
-LATEST.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
chmod
440
$DST_FILE
chgrp
$owner_group
$DST_FILE
chgrp
$owner_group
$DST_FILE
ln
-sf
$DST_FILE
$LINK_TARGET
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