Skip to content
Permalink
Browse files

Fix mysql dumping of databases for backups.

  • Loading branch information...
perlDreamer committed Jan 11, 2012
1 parent 74ecef1 commit 8063392b9e23d72fd499e6c7359d2cbda924e4b8
Showing with 4 additions and 3 deletions.
  1. +4 −3 wre/sbin/backup.pl
@@ -34,6 +34,7 @@
exit unless $config->get("backup/enabled");

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

@@ -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);
@@ -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(

0 comments on commit 8063392

Please sign in to comment.
You can’t perform that action at this time.