X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0a236a864373304ba6d6494e02113aa54f8e24cb..a8e08a1c4cb78c7af95b8d498a4f120b7967388c:/cookbooks/web/templates/default/logrotate.apache.erb?ds=inline diff --git a/cookbooks/web/templates/default/logrotate.apache.erb b/cookbooks/web/templates/default/logrotate.apache.erb index 8d64879f5..b4d171be8 100644 --- a/cookbooks/web/templates/default/logrotate.apache.erb +++ b/cookbooks/web/templates/default/logrotate.apache.erb @@ -11,6 +11,6 @@ sharedscripts postrotate /etc/init.d/apache2 reload > /dev/null - /usr/bin/rsync /var/log/apache2/access.log.2.gz ironbelly::logs/www.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz + /usr/bin/rsync --preallocate /var/log/apache2/access.log.2.gz ironbelly::logs/www.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz endscript }