N°7150 - Backup : on MariaDB >= 11.0.1 call mariadb-dump instead of mysqldump

This commit is contained in:
Anne-Cath
2026-02-27 16:36:18 +01:00
parent fc967c06ce
commit 4ecf81d032
3 changed files with 13 additions and 3 deletions

View File

@@ -564,7 +564,7 @@ class SetupUtils
$sMySQLBinDir = MetaModel::GetConfig()->GetModuleSetting('itop-backup', 'mysql_bindir', '');
}
try {
$sMySQLDump = DBBackup::MakeSafeMySQLCommand($sMySQLBinDir, 'mysqldump');
$sMySQLDump = DBBackup::MakeSafeMySQLCommand($sMySQLBinDir, DBBackup::GetDumpFunction());
} catch (Exception $e) {
$aResult[] = new CheckResult(CheckResult::ERROR, $e->getMessage());
return $aResult;