X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/51096343cee85550cd197da1f8354f8407506af5..205f52838d5bf5dd42a6cc10efbbce3d0b65a892:/cookbooks/git/templates/default/backup.cron.erb diff --git a/cookbooks/git/templates/default/backup.cron.erb b/cookbooks/git/templates/default/backup.cron.erb index 29e059b45..5a9d01284 100644 --- a/cookbooks/git/templates/default/backup.cron.erb +++ b/cookbooks/git/templates/default/backup.cron.erb @@ -4,7 +4,7 @@ T=$(mktemp -d -t -p /var/tmp git.XXXXXXXXXX) D=$(date +%Y-%m-%d) -B=<%= node[:git][:backup] %>-$D.tar.gz +B=git-$D.tar.gz ln -s /var/lib/git $T/git-$D @@ -12,6 +12,6 @@ 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