]> git.openstreetmap.org Git - chef.git/blob - cookbooks/munin/templates/default/rrddump.cron.erb
Touch XML files to reflect date of original RRD file. Don't run dump in parallel...
[chef.git] / cookbooks / munin / templates / default / rrddump.cron.erb
1 MAILTO=zerebubuth@gmail.com
2 # 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.
3 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