]> git.openstreetmap.org Git - chef.git/blob - cookbooks/munin/templates/default/backup.cron.erb
80e78c43f70eff50855a48b1fa9a41d955c91aed
[chef.git] / cookbooks / munin / templates / default / backup.cron.erb
1 #!/bin/sh
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 T=$(mktemp -d -t -p /var/tmp munin.XXXXXXXXXX)
6 D=$(date +%Y-%m-%d)
7 B=munin-$D.tar.gz
8
9 export GZIP="--rsyncable -9"
10 export RSYNC_RSH="ssh -ax -c arcfour"
11
12 nice tar --create --gzip --dereference --directory=/var/lib/munin --file=$T/$B openstreetmap *.storable
13 nice rsync $T/$B backup::backup
14
15 rm -rf $T