mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2024-11-01 08:31:45 +01:00
fix issue with multiple dump extra options
mysqldump will fail if the env variable has multiple options, issue: https://github.com/fradelg/docker-mysql-cron-backup/issues/72
This commit is contained in:
parent
42312b94a3
commit
db6014ab1a
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ do
|
|||
echo "==> Dumping database: $db"
|
||||
FILENAME=/backup/$DATE.$db.sql
|
||||
LATEST=/backup/latest.$db.sql
|
||||
if mysqldump --single-transaction "$MYSQLDUMP_OPTS" -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" "$db" > "$FILENAME"
|
||||
if mysqldump --single-transaction $MYSQLDUMP_OPTS -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" "$db" > "$FILENAME"
|
||||
then
|
||||
EXT=
|
||||
if [ -z "${USE_PLAIN_SQL}" ]
|
||||
|
|
Loading…
Reference in a new issue