3 # DO NOT EDIT - This file is being maintained by Chef
5 T=$(mktemp -d -t -p /var/tmp git.XXXXXXXXXX)
7 B=<%= node[:git][:backup] %>-$D.tar.gz
9 ln -s /var/lib/git $T/git-$D
11 export GZIP="--rsyncable -9"
12 export RSYNC_RSH="ssh -ax"
14 nice tar --create --gzip --dereference --directory=$T --file=$T/$B git-$D
15 nice rsync $T/$B backup::backup