From b7a6870e7116d8675ebe91145365c82e862e1919 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 11 Jan 2012 14:33:31 -0800 Subject: [PATCH] Backup SQL files, even if they're not compressed, fix a quoting problem in backing up files. --- wre/etc/wre.conf | 5 +++-- wre/sbin/backup.pl | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wre/etc/wre.conf b/wre/etc/wre.conf index c3bbe56..f4e9840 100644 --- a/wre/etc/wre.conf +++ b/wre/etc/wre.conf @@ -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" : { diff --git a/wre/sbin/backup.pl b/wre/sbin/backup.pl index dca7513..52c3b93 100755 --- a/wre/sbin/backup.pl +++ b/wre/sbin/backup.pl @@ -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!); } }