X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/74b73fca651c497fc361b37ebd70bcf785a83d85..664414939e418b88a370ae31d6cff3245322e7bc:/cookbooks/tilecache/templates/default/logrotate.squid.erb?ds=sidebyside diff --git a/cookbooks/tilecache/templates/default/logrotate.squid.erb b/cookbooks/tilecache/templates/default/logrotate.squid.erb index fdc426cfe..0c45dcab0 100644 --- a/cookbooks/tilecache/templates/default/logrotate.squid.erb +++ b/cookbooks/tilecache/templates/default/logrotate.squid.erb @@ -14,6 +14,6 @@ test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate endscript lastaction - /usr/bin/rsync /var/log/squid/zere.log.1.xz ironbelly::logs/tile.openstreetmap.org/<%= node[:hostname] %>-`date -d "-1 days" +%Y-%m-%d`.xz || true + /usr/bin/rsync --preallocate /var/log/squid/access.log.1.xz ironbelly::logs/tile.openstreetmap.org/<%= node[:hostname] %>-`date -d "-1 days" +%Y-%m-%d`.xz || true endscript }