Added option “--single-transaction” to “mariadb-dump” call
This commit is contained in:
parent
e0a3c8cfa7
commit
b124326a88
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ else # il primo del mese usa un gracetime di 1 anno
|
|||
fi
|
||||
logcmd "php mustool.php shuffle clean optimize" "${logfp}"
|
||||
ofp="maintain/backups/${dbname}_backup-`date +%Y-%m-%d--%H.%M.%S`.sql"
|
||||
logcmd "mysqldump --defaults-extra-file=${mycfgfp} -r ${ofp} ${dbname}" "${logfp}"
|
||||
logcmd "mariadb-dump --defaults-extra-file=${mycfgfp} --single-transaction -r ${ofp} ${dbname}" "${logfp}"
|
||||
if [ "${ec}" != "0" ]; then
|
||||
[ -f "${ofp}" ] && rm "${ofp}"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue