Commit b17eac55 authored by Colan Schwartz's avatar Colan Schwartz

Disable output from the DB backup script as it'll be run via Cron.

parent 7c0460a0
...@@ -46,11 +46,11 @@ $MKDIR -p $BACKUP_DIR ...@@ -46,11 +46,11 @@ $MKDIR -p $BACKUP_DIR
DATE=$(date "+%FT%T") DATE=$(date "+%FT%T")
DST_BASE="$BACKUP_DIR/$1.$DATE.sql" DST_BASE="$BACKUP_DIR/$1.$DATE.sql"
DST_FILE="$DST_BASE.gz" DST_FILE="$DST_BASE.gz"
LINK_TARGET="$BACKUP_DIR/$1-LATEST.sql.gz" LINK_TARGET="$BACKUP_DIR/$1.LATEST.sql.gz"
# Run the Drush command to dump all of the tables. # Run the Drush command to dump all of the tables.
# Cache tables are to maintain their structure, but will not contain any data. # Cache tables are to maintain their structure, but will not contain any data.
$DRUSH $1 sql-dump --gzip --result-file=$DST_BASE --structure-tables-list=cache* $DRUSH $1 sql-dump --quiet --gzip --result-file=$DST_BASE --structure-tables-list=cache*
# Make the files readable by the user and group, no other permissions. # Make the files readable by the user and group, no other permissions.
$CHMOD 440 $DST_FILE $CHMOD 440 $DST_FILE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment