From 7e99a5df2a23e9ea12c7420398886df6e2c03336 Mon Sep 17 00:00:00 2001 From: "Fco. Javier Delgado del Hoyo" Date: Fri, 9 Nov 2018 19:07:23 +0100 Subject: [PATCH] fix double quote --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index d331f58..4dc4f20 100755 --- a/backup.sh +++ b/backup.sh @@ -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