]> git.openstreetmap.org Git - chef.git/blob - cookbooks/trac/templates/default/backup.cron.erb
Add support for managing apache configuration fragments
[chef.git] / cookbooks / trac / 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 trac.XXXXXXXXXX)
6 D=$(date +%Y-%m-%d)
7 B=trac-$D.tar.gz
8
9 trac-admin /var/lib/trac hotcopy $T/trac-$D > /dev/null
10
11 export GZIP="--rsyncable -9"
12 export RSYNC_RSH="ssh -ax -c arcfour"
13
14 nice tar --create --gzip --directory=$T --file=$T/$B trac-$D
15 nice rsync $T/$B backup::backup
16
17 rm -rf $T