Skip to content
Permalink
Browse files

Fix an entry in wre.conf. Make local copying quiet now that it works,…

… and remove duplicate exclusion code from the remote copy.
  • Loading branch information...
perlDreamer committed Jan 11, 2012
1 parent b7a6870 commit ec2586797883ec42687bbd118e63fd932cd9a9e4
Showing with 3 additions and 3 deletions.
  1. +1 −1 wre/etc/wre.conf
  2. +2 −2 wre/sbin/backup.pl
@@ -106,7 +106,7 @@
"rotations" : 3, ##Number of remote backups.
"hostname" : "rsync.example.com",
"user" : "rsyncuser",
"path" : "."
"remote_path" : "." ##No trailing slash for this directory
}
},

@@ -86,7 +86,7 @@ sub backupFiles {
my $backupDir = $config->get("backup/path");
foreach my $path (@{ $paths }) {
say "rsyncing $path locally...";
system (qq!nice rsync -av --exclude=logs --exclude="domains/demo*" --exclude=mysqldata $path $backupDir/backup!);
system (qq!nice rsync -a --quiet --exclude=logs --exclude="domains/demo*" --exclude=mysqldata $path $backupDir/backup!);
}
}

@@ -126,7 +126,7 @@ sub copyToRemote {
say "Moving new data over...";
foreach my $path (@{ $paths }) {
say "rsyncing $path remotely...";
system ("rsync -av --chmod=u+rwx --exclude=logs --exclude=mysqldata $path $ACCOUNT:$remote_path/backup");
system ("rsync -av --chmod=u+rwx $path $ACCOUNT:$remote_path/backup");
}
}

0 comments on commit ec25867

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