X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0a236a864373304ba6d6494e02113aa54f8e24cb..e6fdd138d096ff2361c357247096e4946246df55:/cookbooks/web/templates/default/logrotate.apache.erb?ds=sidebyside 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 }