]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/trac/templates/default/backup.cron.erb
Respond with 429 to abusive "ping" requests
[chef.git] / cookbooks / trac / templates / default / backup.cron.erb
index bfc9c0305be1cdc73735de7b0f0c16fd30e67232..328d8e53cc7163e97d84b446407be375885caab1 100644 (file)
@@ -8,10 +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 -c arcfour"
+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