]> git.openstreetmap.org Git - chef.git/blob - cookbooks/subversion/templates/default/backup.cron.erb
Don't keep backups of tile data files
[chef.git] / cookbooks / subversion / 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 svn.XXXXXXXXXX)
6 D=$(date +%Y-%m-%d)
7 B=svn-$D.tar.gz
8
9 nice svnadmin hotcopy /var/lib/subversion/repos/openstreetmap $T/svn-$D > /dev/null
10
11 export GZIP="--rsyncable -9"
12
13 nice tar --create --gzip --directory=$T --file=$T/$B svn-$D
14 nice rsync $T/$B backup::backup
15
16 rm -rf $T