Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix mysql dumping of databases for backups.
  • Loading branch information
perlDreamer committed Jan 11, 2012
1 parent 74ecef1 commit 8063392
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wre/sbin/backup.pl
Expand Up @@ -34,6 +34,7 @@
exit unless $config->get("backup/enabled");

backupMysql($config);
backupFiles($config);
runExternalScripts($config);
copyToRemote($config);

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

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

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

# skip some databases
next if ($name =~ /^demo\d/);
next if ($name eq 'test');
next if $name =~ /^demo\d/;
next if $name ~~ [qw/test information_schema performance_schema/];

# create dump
$mysql->dump(
Expand Down

0 comments on commit 8063392

Please sign in to comment.