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

@@ -96,7 +96,7 @@ try {
//
$sMySQLBinDir = MetaModel::GetConfig()->GetModuleSetting('itop-backup', 'mysql_bindir', '');
$sMySQLBinDir = utils::ReadParam('mysql_bindir', $sMySQLBinDir, true);
$sMySQLDump = DBBackup::MakeSafeMySQLCommand($sMySQLBinDir, 'mysqldump');
$sMySQLDump = DBBackup::MakeSafeMySQLCommand($sMySQLBinDir, DBBackup::GetDumpFunction());
$sCommand = "$sMySQLDump -V 2>&1";
$aOutput = [];