mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-01-18 16:22:33 +01:00
fix double quote
This commit is contained in:
parent
5153565714
commit
7e99a5df2a
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ do
|
|||
echo "Dumping database: $db"
|
||||
FILENAME=/backup/$DATE.$db.sql
|
||||
LATEST=/backup/latest.$db.sql.gz
|
||||
if mysqldump -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" --databases "$db" $MYSQLDUMP_OPTS > "$FILENAME"
|
||||
if mysqldump -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" --databases "$db" "$MYSQLDUMP_OPTS" > "$FILENAME"
|
||||
then
|
||||
gzip -f "$FILENAME"
|
||||
rm "$LATEST" 2> /dev/null
|
||||
|
|
Loading…
Reference in a new issue