]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/git/templates/default/backup.cron.erb
Use variable to enable readonly mode, as was used in the previous version of the...
[chef.git] / cookbooks / git / templates / default / backup.cron.erb
index 16f85593b53019359230cc964f85b95a3737beed..29e059b45e614592d612c5632887b9c45893bcb7 100644 (file)
@@ -4,11 +4,12 @@
 
 T=$(mktemp -d -t -p /var/tmp git.XXXXXXXXXX)
 D=$(date +%Y-%m-%d)
-B=git-$D.tar.gz
+B=<%= node[:git][:backup] %>-$D.tar.gz
 
 ln -s /var/lib/git $T/git-$D
 
 export GZIP="--rsyncable -9"
+export RSYNC_RSH="ssh -ax"
 
 nice tar --create --gzip --dereference --directory=$T --file=$T/$B git-$D
 nice rsync $T/$B backup::backup