X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/51096343cee85550cd197da1f8354f8407506af5..7b07f5d59b1751fef2f13b3dea701807c0b421e3:/cookbooks/otrs/templates/default/backup.cron.erb?ds=sidebyside diff --git a/cookbooks/otrs/templates/default/backup.cron.erb b/cookbooks/otrs/templates/default/backup.cron.erb index 6724e3ca4..aecce1c64 100644 --- a/cookbooks/otrs/templates/default/backup.cron.erb +++ b/cookbooks/otrs/templates/default/backup.cron.erb @@ -13,10 +13,9 @@ sudo -u otrs pg_dump --file=$T/otrs-$D/otrs.dmp otrs ln -s /opt/otrs $T/otrs-$D/otrs ln -s /etc/apache2/sites-available/otrs.openstreetmap.org.conf $T/otrs-$D/apache2-otrs.openstreetmap.org.conf -export GZIP="--rsyncable -9" export RSYNC_RSH="ssh -ax" -nice tar --create --gzip --dereference --directory=$T --file=$T/$B otrs-$D -nice rsync $T/$B backup::backup +nice tar --create --dereference --directory=$T otrs-$D | nice gzip --rsyncable -9 > $T/$B +nice rsync --preallocate --fuzzy $T/$B backup::backup rm -rf $T