Skip to content

Commit 8063392

Browse files
committedJan 11, 2012
Fix mysql dumping of databases for backups.
1 parent 74ecef1 commit 8063392

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎wre/sbin/backup.pl

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
exit unless $config->get("backup/enabled");
3535

3636
backupMysql($config);
37+
backupFiles($config);
3738
runExternalScripts($config);
3839
copyToRemote($config);
3940

@@ -42,7 +43,7 @@ sub backupMysql {
4243
my $config = shift;
4344

4445
# should we run?
45-
return undef unless $config->get("backup//mysql/enabled");
46+
return undef unless $config->get("backup/mysql/enabled");
4647

4748
# disable wremonitor to prevent false positives
4849
$config->set("wreMonitor/nginxAdministrativelyDown", 1);
@@ -62,8 +63,8 @@ sub backupMysql {
6263
while (my ($name) = $databases->fetchrow_array) {
6364

6465
# 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/];
6768

6869
# create dump
6970
$mysql->dump(

0 commit comments

Comments
 (0)
Please sign in to comment.