Skip to content

Commit ec25867

Browse files
committedJan 11, 2012
Fix an entry in wre.conf. Make local copying quiet now that it works, and remove duplicate exclusion code from the remote copy.
1 parent b7a6870 commit ec25867

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎wre/etc/wre.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"rotations" : 3, ##Number of remote backups.
107107
"hostname" : "rsync.example.com",
108108
"user" : "rsyncuser",
109-
"path" : "."
109+
"remote_path" : "." ##No trailing slash for this directory
110110
}
111111
},
112112

‎wre/sbin/backup.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ sub backupFiles {
8686
my $backupDir = $config->get("backup/path");
8787
foreach my $path (@{ $paths }) {
8888
say "rsyncing $path locally...";
89-
system (qq!nice rsync -av --exclude=logs --exclude="domains/demo*" --exclude=mysqldata $path $backupDir/backup!);
89+
system (qq!nice rsync -a --quiet --exclude=logs --exclude="domains/demo*" --exclude=mysqldata $path $backupDir/backup!);
9090
}
9191
}
9292

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

0 commit comments

Comments
 (0)
Please sign in to comment.