]> git.openstreetmap.org Git - chef.git/blob - cookbooks/mailman/templates/default/backup.cron.erb
Remove setting of level0.overpass_url_prefix, default should be fine.
[chef.git] / cookbooks / mailman / 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 lists.XXXXXXXXXX)
6 D=$(date +%Y-%m-%d)
7 B=lists-$D.tar.gz
8
9 mkdir $T/lists-$D
10 ln -s /var/lib/mailman $T/lists-$D/mailman
11
12 export GZIP="--rsyncable -9"
13 export RSYNC_RSH="ssh -ax"
14
15 nice tar --create --gzip --dereference --directory=$T --file=$T/$B lists-$D
16 nice rsync $T/$B backup::backup
17
18 rm -rf $T