Merge pull request #1 from martin8883/master
Bugfix for missing databases with Multidump users
Dieser Commit ist enthalten in:
Commit
dd0e8aede7
3 geänderte Dateien mit 13 neuen und 4 gelöschten Zeilen
2
.gitignore
gevendort
2
.gitignore
gevendort
|
@ -1 +1,3 @@
|
||||||
.idea
|
.idea
|
||||||
|
/work/
|
||||||
|
/config.php
|
||||||
|
|
|
@ -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]);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren