Skip to content

Commit

Permalink
Fix an entry in wre.conf. Make local copying quiet now that it works,…
Browse files Browse the repository at this point in the history
… and remove duplicate exclusion code from the remote copy.
  • Loading branch information
perlDreamer committed Jan 11, 2012
1 parent b7a6870 commit ec25867
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wre/etc/wre.conf
Expand Up @@ -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
}
},

Expand Down
4 changes: 2 additions & 2 deletions wre/sbin/backup.pl
Expand Up @@ -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!);
}
}

Expand Down Expand Up @@ -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");
}
}

Expand Down

0 comments on commit ec25867

Please sign in to comment.