Skip to content

Commit

Permalink
Backup SQL files, even if they're not compressed, fix a quoting probl…
Browse files Browse the repository at this point in the history
…em in backing up files.
  • Loading branch information
perlDreamer committed Jan 11, 2012
1 parent 22bb269 commit b7a6870
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions wre/etc/wre.conf
Expand Up @@ -94,10 +94,11 @@
"enabled" : 1 "enabled" : 1
}, },
"items" : [ ##List of directories, wildcards are okay "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/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" ##All WRE configuration files
#"/data/wre/etc" ##The whole WRE with binaries
], ],
"externalScripts" : [], "externalScripts" : [],
"rsync" : { "rsync" : {
Expand Down
2 changes: 1 addition & 1 deletion wre/sbin/backup.pl
Expand Up @@ -86,7 +86,7 @@ sub backupFiles {
my $backupDir = $config->get("backup/path"); my $backupDir = $config->get("backup/path");
foreach my $path (@{ $paths }) { foreach my $path (@{ $paths }) {
say "rsyncing $path locally..."; 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!);
} }
} }


Expand Down

0 comments on commit b7a6870

Please sign in to comment.