X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/518ae814ad880885f1f7b7a0f12a2da2eff071ce..f8a576aca1270f703f38c3257cf533390692de06:/cookbooks/planet/templates/default/logrotate.apache.erb?ds=sidebyside diff --git a/cookbooks/planet/templates/default/logrotate.apache.erb b/cookbooks/planet/templates/default/logrotate.apache.erb index e7d9e3c23..f1c5dde56 100644 --- a/cookbooks/planet/templates/default/logrotate.apache.erb +++ b/cookbooks/planet/templates/default/logrotate.apache.erb @@ -11,7 +11,7 @@ sharedscripts postrotate /etc/init.d/apache2 reload > /dev/null - rsync /var/log/apache2/planet.openstreetmap.org-access.log.2.gz horntail::logs/planet.openstreetmap.org/`date -d "-7 days" +%Y-%m-%d`.gz + rsync --preallocate /var/log/apache2/planet.openstreetmap.org-access.log.2.gz ironbelly::logs/planet.openstreetmap.org/`date -d "-7 days" +%Y-%m-%d`.gz endscript prerotate if [ -d /etc/logrotate.d/httpd-prerotate ]; then \