diff --git a/backup.sh b/backup.sh old mode 100644 new mode 100755 index f0d427c..d2ca3dd --- a/backup.sh +++ b/backup.sh @@ -11,7 +11,7 @@ do then echo "Dumping database: $db" FILENAME=/backup/$DATE.$db.sql - if mysqldump -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" "$db" > "$FILENAME" + if mysqldump -h "$MYSQL_HOST" -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASS" --databases "$db" > "$FILENAME" then gzip -f "$FILENAME" else