# DO NOT EDIT - This file is being maintained by Chef
-for prefix in chef-server chef-repository chef-git git lists osm-blog osmf-crm osmf-ledgersmb wiki-wiki.osmfoundation.org osqa otrs sotm svn switch2osm thinkup trac wiki-board.osmfoundation.org wiki-wiki.openstreetmap.org
+for prefix in chef-server chef-repository chef-git git lists munin osm-blog osmf-crm osmf-ledgersmb wiki-wiki.osmfoundation.org osqa otrs sotm svn switch2osm thinkup trac wiki-board.osmfoundation.org wiki-wiki.openstreetmap.org
do
/usr/local/bin/expire-backups --days=3 --weeks=3 --months=3 /store/backup $prefix
done
template "apache.erb"
end
+template "/etc/cron.daily/munin-backup" do
+ source "backup.cron.erb"
+ owner "root"
+ group "root"
+ mode 0750
+end
+
munin_plugin "munin_stats"
munin_plugin "munin_update"
munin_plugin "munin_rrdcached"
--- /dev/null
+#!/bin/sh
+
+# DO NOT EDIT - This file is being maintained by Chef
+
+T=$(mktemp -d -t -p /var/tmp munin.XXXXXXXXXX)
+D=$(date +%Y-%m-%d)
+B=munin-$D.tar.gz
+
+export GZIP="--rsyncable -9"
+export RSYNC_RSH="ssh -ax -c arcfour"
+
+nice tar --create --gzip --dereference --directory=/var/lib/munin --file=$T/$B openstreetmap *.storable
+nice rsync $T/$B backup::backup
+
+rm -rf $T