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
|
||||
/work/
|
||||
/config.php
|
||||
|
|
|
@ -123,4 +123,4 @@ $config['multi_dump']=0;
|
|||
$config['logcompression']=1;
|
||||
$config['log_maxsize1']=1;
|
||||
$config['log_maxsize2']=2;
|
||||
$config['log_maxsize']=1048576;
|
||||
$config['log_maxsize']=1048576;
|
|
@ -410,13 +410,20 @@ function WriteCronScript($restore_values = false)
|
|||
|
||||
$newDbNames = $databases['Name'];
|
||||
//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)) {
|
||||
unset($cron_db_array[$k],
|
||||
$cron_dbpraefix_array[$k],
|
||||
$cron_command_before_dump[$k],
|
||||
$cron_command_after_dump[$k],
|
||||
$newDbNames[$k]);
|
||||
$cron_command_after_dump[$k]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren