X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4479ee5c32b8d5c7dc6cef37b4bbaed9402ed4fb..200f486870c88f3916ede7bcb36b47b374a63901:/cookbooks/git/templates/default/backup.cron.erb?ds=sidebyside diff --git a/cookbooks/git/templates/default/backup.cron.erb b/cookbooks/git/templates/default/backup.cron.erb index 5a9d01284..b3404c7d5 100644 --- a/cookbooks/git/templates/default/backup.cron.erb +++ b/cookbooks/git/templates/default/backup.cron.erb @@ -8,10 +8,9 @@ B=git-$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 --preallocate --fuzzy $T/$B backup::backup +nice tar --create --dereference --directory=$T git-$D | nice gzip --rsyncable -9 > $T/$B +nice rsync --preallocate --fuzzy $T/$B backup.openstreetmap.org::backup rm -rf $T