Merge pull request #16 from tito/tito-patch-1

Fix usage of DB_PORT for single mariadb database
This commit is contained in:
Dave Conroy
2019-09-16 07:12:54 -07:00
committed by GitHub

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