X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/74b73fca651c497fc361b37ebd70bcf785a83d85..cb9f25913c9199b6daa6a9985ac109e4fd35dbf8:/cookbooks/tilecache/templates/default/logrotate.squid.erb 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 }