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
8ee98c33
Commit
8ee98c33
authored
Apr 14, 2015
by
Colan Schwartz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the date format human-readable in the DB backup script.
parent
3b1eb42f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/mysql-backup-databases
scripts/mysql-backup-databases
+2
-2
No files found.
scripts/mysql-backup-databases
View file @
8ee98c33
...
...
@@ -43,8 +43,8 @@ set -u
$MKDIR
-p
$BACKUP_DIR
# Set the current timestamp and file targets.
DATE
=
$(
date
"+%
y%m%d%H%M
"
)
DST_BASE
=
"
$BACKUP_DIR
/
$1
-
$DATE
.sql"
DATE
=
$(
date
"+%
FT%T
"
)
DST_BASE
=
"
$BACKUP_DIR
/
$1
.
$DATE
.sql"
DST_FILE
=
"
$DST_BASE
.gz"
LINK_TARGET
=
"
$BACKUP_DIR
/
$1
-LATEST.sql.gz"
...
...
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