Skip to content
Permalink
Browse files

Backup SQL files, even if they're not compressed, fix a quoting probl…

…em in backing up files.
  • Loading branch information...
perlDreamer committed Jan 11, 2012
1 parent 22bb269 commit b7a6870e7116d8675ebe91145365c82e862e1919
Showing with 4 additions and 3 deletions.
  1. +3 −2 wre/etc/wre.conf
  2. +1 −1 wre/sbin/backup.pl
@@ -94,10 +94,11 @@
"enabled" : 1
},
"items" : [ ##List of directories, wildcards are okay
"/data/domains", ##All domain files
"/data/domains", ##All domain files, except demo sites
"/data/WebGUI", ##All of WebGUI, including etc and sbin
"/data/backup/*.sql", ##All database dumps
"/backup/*.sql", ##All database dumps
"/data/wre/etc" ##All WRE configuration files
#"/data/wre/etc" ##The whole WRE with binaries
],
"externalScripts" : [],
"rsync" : {
@@ -86,7 +86,7 @@ sub backupFiles {
my $backupDir = $config->get("backup/path");
foreach my $path (@{ $paths }) {
say "rsyncing $path locally...";
system (q!nice rsync -av --exclude=logs --exclude="domains/demo*" --exclude=mysqldata $path $backupDir/backup!);
system (qq!nice rsync -av --exclude=logs --exclude="domains/demo*" --exclude=mysqldata $path $backupDir/backup!);
}
}

0 comments on commit b7a6870

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