Fix usage of DB_PORT for single mariadb database

Fixes #15
This commit is contained in:
Mathieu Virbel
2019-09-16 12:32:16 +02:00
committed by GitHub
parent 78e7434a85
commit 243bbb9709

View File

@@ -118,7 +118,7 @@ function backup_mysql() {
fi
done
else
mysqldump --max-allowed-packet=512M -A -h $DBHOST -u$DBUSER ${MYSQL_PASS_STR} > ${TMPDIR}/${TARGET}
mysqldump --max-allowed-packet=512M -A -h $DBHOST -P $DBPORT -u$DBUSER ${MYSQL_PASS_STR} > ${TMPDIR}/${TARGET}
generate_md5
compression
move_backup