X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/51096343cee85550cd197da1f8354f8407506af5..7b07f5d59b1751fef2f13b3dea701807c0b421e3:/cookbooks/trac/templates/default/backup.cron.erb?ds=sidebyside diff --git a/cookbooks/trac/templates/default/backup.cron.erb b/cookbooks/trac/templates/default/backup.cron.erb index 6d92f3a7e..328d8e53c 100644 --- a/cookbooks/trac/templates/default/backup.cron.erb +++ b/cookbooks/trac/templates/default/backup.cron.erb @@ -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" -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