Skip to content

Commit b7a6870

Browse files
committedJan 11, 2012
Backup SQL files, even if they're not compressed, fix a quoting problem in backing up files.
1 parent 22bb269 commit b7a6870

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎wre/etc/wre.conf

+3-2
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@
9494
"enabled" : 1
9595
},
9696
"items" : [ ##List of directories, wildcards are okay
97-
"/data/domains", ##All domain files
97+
"/data/domains", ##All domain files, except demo sites
9898
"/data/WebGUI", ##All of WebGUI, including etc and sbin
99-
"/data/backup/*.sql", ##All database dumps
99+
"/backup/*.sql", ##All database dumps
100100
"/data/wre/etc" ##All WRE configuration files
101+
#"/data/wre/etc" ##The whole WRE with binaries
101102
],
102103
"externalScripts" : [],
103104
"rsync" : {

‎wre/sbin/backup.pl

+1-1
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 (q!nice rsync -av --exclude=logs --exclude="domains/demo*" --exclude=mysqldata $path $backupDir/backup!);
89+
system (qq!nice rsync -av --exclude=logs --exclude="domains/demo*" --exclude=mysqldata $path $backupDir/backup!);
9090
}
9191
}
9292

0 commit comments

Comments
 (0)