File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 34
34
exit unless $config -> get(" backup/enabled" );
35
35
36
36
backupMysql($config );
37
+ backupFiles($config );
37
38
runExternalScripts($config );
38
39
copyToRemote($config );
39
40
@@ -42,7 +43,7 @@ sub backupMysql {
42
43
my $config = shift ;
43
44
44
45
# should we run?
45
- return undef unless $config -> get(" backup// mysql/enabled" );
46
+ return undef unless $config -> get(" backup/mysql/enabled" );
46
47
47
48
# disable wremonitor to prevent false positives
48
49
$config -> set(" wreMonitor/nginxAdministrativelyDown" , 1);
@@ -62,8 +63,8 @@ sub backupMysql {
62
63
while (my ($name ) = $databases -> fetchrow_array) {
63
64
64
65
# skip some databases
65
- next if ( $name =~ / ^demo\d / ) ;
66
- next if ( $name eq ' test' ) ;
66
+ next if $name =~ / ^demo\d / ;
67
+ next if $name ~~ [ qw/ test information_schema performance_schema / ] ;
67
68
68
69
# create dump
69
70
$mysql -> dump (
You can’t perform that action at this time.
0 commit comments