Added option “--single-transaction” to “mariadb-dump” call

This commit is contained in:
pezcurrel 2023-12-31 20:30:34 +01:00
parent e0a3c8cfa7
commit b124326a88

View file

@ -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