]> git.openstreetmap.org Git - chef.git/blob - cookbooks/mailman/templates/default/backup.cron.erb
Merge remote-tracking branch 'tigerfell/pr257'
[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 RSYNC_RSH="ssh -ax"
13
14 nice tar --create --dereference --warning=no-file-changed --warning=no-file-removed --directory=$T lists-$D | nice gzip --rsyncable -9 > $T/$B
15 nice rsync --preallocate --fuzzy $T/$B backup::backup
16
17 rm -rf $T