1
0
Fork 0

Bugfix for missing databases with Multidump users, see http://forum.mysqldumper.de/post47665.html#t47665

Dieser Commit ist enthalten in:
Martin Gojowsky 2015-06-10 11:52:20 +02:00
Ursprung ffa6b9a50a
Commit e1b2e68d4b

Datei anzeigen

@ -410,13 +410,20 @@ function WriteCronScript($restore_values = false)
$newDbNames = $databases['Name']; $newDbNames = $databases['Name'];
//remove database we don't want to backup //remove database we don't want to backup
foreach ($databases['Name'] as $k => $v) { // from newDbNames
foreach ($databases['Name'] as $k=>$v) {
if (in_array($v, $dontBackupDatabases)) {
unset($newDbNames[$k]);
}
}
// and from cron (cron_db_array has different length to newDbNames: at least mysql and information_schema are missing)
foreach ($cron_db_array as $k=>$v) {
if (in_array($v, $dontBackupDatabases)) { if (in_array($v, $dontBackupDatabases)) {
unset($cron_db_array[$k], unset($cron_db_array[$k],
$cron_dbpraefix_array[$k], $cron_dbpraefix_array[$k],
$cron_command_before_dump[$k], $cron_command_before_dump[$k],
$cron_command_after_dump[$k], $cron_command_after_dump[$k]
$newDbNames[$k]); );
} }
} }