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