1
0
Fork 0

Merge pull request #1 from martin8883/master

Bugfix for missing databases with Multidump users
Dieser Commit ist enthalten in:
Daniel Schlichtholz 2015-06-11 05:34:47 +02:00
Commit dd0e8aede7
3 geänderte Dateien mit 13 neuen und 4 gelöschten Zeilen

2
.gitignore gevendort
Datei anzeigen

@ -1 +1,3 @@
.idea .idea
/work/
/config.php

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]); );
} }
} }