]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/templates/default/logrotate.apache.erb
planet: do not keep previous planet around.
[chef.git] / cookbooks / planet / templates / default / logrotate.apache.erb
index c25e4853fd7f43f8f6cef5891c5adc79ba415784..69ca79ca1949e527c54153806a18cdff2cdb73c8 100644 (file)
@@ -11,7 +11,7 @@
        sharedscripts
        postrotate
                /etc/init.d/apache2 reload > /dev/null
-               rsync /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 \