From b124326a88a1b226ca77172aa7ada593d82bc407 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Sun, 31 Dec 2023 20:30:34 +0100 Subject: [PATCH] =?UTF-8?q?Added=20option=20=E2=80=9C--single-transaction?= =?UTF-8?q?=E2=80=9D=20to=20=E2=80=9Cmariadb-dump=E2=80=9D=20call?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/clitools/maintain/maintain.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/clitools/maintain/maintain.bash b/web/clitools/maintain/maintain.bash index 0b74297..99914c7 100755 --- a/web/clitools/maintain/maintain.bash +++ b/web/clitools/maintain/maintain.bash @@ -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