X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5524a5f2a12c63acc122269b928cf28a4b0ce211..ec4ff72f33f13089bc2f3cd64087ece880eb5135:/cookbooks/planet/templates/default/logrotate.apache.erb diff --git a/cookbooks/planet/templates/default/logrotate.apache.erb b/cookbooks/planet/templates/default/logrotate.apache.erb index f1c5dde56..69ca79ca1 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 --preallocate /var/log/apache2/planet.openstreetmap.org-access.log.2.gz ironbelly::logs/planet.openstreetmap.org/`date -d "-7 days" +%Y-%m-%d`.gz + rsync --preallocate /var/log/apache2/planet.openstreetmap.org-access.log.2.gz backup.openstreetmap.org::logs/planet.openstreetmap.org/`date -d "-7 days" +%Y-%m-%d`.gz endscript prerotate if [ -d /etc/logrotate.d/httpd-prerotate ]; then \