3 RRD_DIR=/var/lib/munin/openstreetmap
 
   5 DUMP_DIR=/srv/munin.openstreetmap.org/dumps
 
   6 TARGET_TGZ=`date "+munin-data-%Y-%m-%d.tar.gz"`
 
  19   rrdtool dump "$f" "$DIR/${f}.xml"
 
  20   touch -r "$f" "$DIR/${f}.xml"
 
  24 find -name "*.xml" -print0 | tar zcf "dump.tar.gz" --null -T -
 
  26 # if we got here, then the file was created okay so we're okay to delete any
 
  28 find "${DUMP_DIR}" -name "munin-data-*.tar.gz" -print0 | \
 
  30     tail -z -n "+${KEEP_OLD_COUNT}" | \
 
  33 mv dump.tar.gz "${DUMP_DIR}/${TARGET_TGZ}"