Added table locking to mysql during backup

This commit is contained in:
Deon George 2015-07-17 21:56:09 +10:00
parent 01591b9750
commit c573610769

View File

@ -60,7 +60,7 @@ done
# Our defaults
FILESPACE=${FILESPACE:-"/mysqldump"}
MYSQL_ARGS=${MYSQL_ARGS:-"-K --skip-extended-insert --skip-dump-date --log-error=/var/log/tsm/tdp.mysql.log"}
MYSQL_ARGS=${MYSQL_ARGS:-"-FlK --skip-extended-insert --skip-dump-date --log-error=/var/log/tsm/tdp.mysql.log"}
[ -n "$DBPASS" ] && MYSQL_AUTH="-p${DBPASS}"
[ -n "$DBUSER" ] && MYSQL_AUTH="-u${DBUSER} ${MYSQL_AUTH}"