X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/11fdc9157c3243a489cd1c5f05b1abd686952555..524a7ce279b8975ebe0dfb61f8f9f637e5f04b0f:/cookbooks/munin/templates/default/rrddump.cron.erb diff --git a/cookbooks/munin/templates/default/rrddump.cron.erb b/cookbooks/munin/templates/default/rrddump.cron.erb index 604917336..33087c3fd 100644 --- a/cookbooks/munin/templates/default/rrddump.cron.erb +++ b/cookbooks/munin/templates/default/rrddump.cron.erb @@ -1,3 +1,3 @@ MAILTO=zerebubuth@gmail.com -# do the dump in the early hours of the morning and follow, if successful, by a cleanup of the old files. i don't think these are of any historical interest, so just keep three consecutive. -43 3 * * * www-data nice /usr/local/bin/rrddump > /srv/munin.openstreetmap.org/dumps/`date "+munin-data-%Y-%m-%d.tar.gz"` && ls -1 /srv/munin.openstreetmap.org/dumps/munin-data-*.tar.gz | sort -r | tail -n +4 | xargs rm -f +# do the dump & cleanup in the early hours of the morning +43 3 * * * www-data nice /usr/local/bin/rrddump