|
|
@ -76,7 +76,11 @@ if [ ! -z "$(echo $MULTI_FILES | grep -i -E "(yes|true|1)")" ]; then |
|
|
|
mysqldump $MYSQL_HOST_OPTS $MYSQLDUMP_OPTIONS --databases $DB | gzip > $DUMP_FILE |
|
|
|
|
|
|
|
if [ $? == 0 ]; then |
|
|
|
S3_FILE="${DUMP_START_TIME}.${DB}.sql.gz" |
|
|
|
if [ "${S3_FILENAME}" == "**None**" ]; then |
|
|
|
S3_FILE="${DUMP_START_TIME}.${DB}.sql.gz" |
|
|
|
else |
|
|
|
S3_FILE="${S3_FILENAME}.${DB}.sql.gz" |
|
|
|
fi |
|
|
|
|
|
|
|
copy_s3 $DUMP_FILE $S3_FILE |
|
|
|
else |
|
|
@ -91,7 +95,11 @@ else |
|
|
|
mysqldump $MYSQL_HOST_OPTS $MYSQLDUMP_OPTIONS $MYSQLDUMP_DATABASE | gzip > $DUMP_FILE |
|
|
|
|
|
|
|
if [ $? == 0 ]; then |
|
|
|
S3_FILE="${DUMP_START_TIME}.dump.sql.gz" |
|
|
|
if [ "${S3_FILENAME}" == "**None**" ]; then |
|
|
|
S3_FILE="${DUMP_START_TIME}.dump.sql.gz" |
|
|
|
else |
|
|
|
S3_FILE="${S3_FILENAME}.sql.gz" |
|
|
|
fi |
|
|
|
|
|
|
|
copy_s3 $DUMP_FILE $S3_FILE |
|
|
|
else |
|
|
|