]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/trac/templates/default/backup.cron.erb
split configuration in two, include new templates
[chef.git] / cookbooks / trac / templates / default / backup.cron.erb
index 06f6de9612aa03588ef2ac70fa5cd15ce95c8bc2..328d8e53cc7163e97d84b446407be375885caab1 100644 (file)
@@ -8,9 +8,9 @@ B=trac-$D.tar.gz
 
 trac-admin /var/lib/trac hotcopy $T/trac-$D > /dev/null
 
-export GZIP="--rsyncable -9"
+export RSYNC_RSH="ssh -ax"
 
-nice tar --create --gzip --directory=$T --file=$T/$B trac-$D
-nice rsync $T/$B backup::backup
+nice tar --create --directory=$T trac-$D | nice gzip --rsyncable -9 > $T/$B
+nice rsync --preallocate --fuzzy $T/$B backup::backup
 
 rm -rf $T