]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/git/templates/default/backup.cron.erb
Use rsync preallocate files to avoid fragmentation
[chef.git] / cookbooks / git / templates / default / backup.cron.erb
index 13f1067b16ec56f0ad95ddb2ca9c499e10c692c1..ac2167b8c20459b7408f62f68024fdad73a2a0f5 100644 (file)
@@ -9,8 +9,9 @@ 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
+nice rsync --preallocate --fuzzy $T/$B backup::backup
 
 rm -rf $T