From a365376ebe7d6c83e21cc5852b65979ec239dcd0 Mon Sep 17 00:00:00 2001 From: skimpax <3287732+skimpax@users.noreply.github.com> Date: Thu, 30 Dec 2021 18:38:31 +0100 Subject: [PATCH] Add double quotes --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 6b75964..71ba385 100755 --- a/backup.sh +++ b/backup.sh @@ -21,7 +21,7 @@ do echo "==> Dumping database: $db" FILENAME=/backup/$DATE.$db.sql LATEST=/backup/latest.$db.sql.gz - if mysqldump --single-transaction -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" "$db" $MYSQLDUMP_OPTS > "$FILENAME" + if mysqldump --single-transaction -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" "$db" "$MYSQLDUMP_OPTS" > "$FILENAME" then gzip "-$GZIP_LEVEL" -f "$FILENAME" echo "==> Creating symlink to latest backup: $(basename "$FILENAME".gz)"