Dave Jones <davej@xxxxxxxxxx> writes: > DATE=`date +%Y-%m-%d` > > PROJ="git" > cd ~/git-trees > if [ -d $PROJ ]; then > cd $PROJ > git pull -n > else > git clone -q git://git.kernel.org/pub/scm/git/git.git > cd $PROJ > fi > snap=git-snapshot-$(date +"%Y%m%d") > git-tar-tree HEAD $snap | gzip -9 > $PROJ-$DATE.tar.gz If you are using git-tar-tree (which by the way _is_ the right thing to do) and if you are just taking an upstream snapshot without doing your own development (which also is the case here), then you do not even need a working tree in the directory this script runs. It would save your disk space and time to check out the updated working tree files. Perhaps... #!/bin/sh URL=git://git.kernel.org/pub/scm/git/git.git PROJ=git cd ~/git-trees if test -d "$PROJ" then cd "$PROJ" && git fetch else git clone -q -n "$URL" "$PROJ" && cd "$PROJ" fi || { echo >&2 Something wicked happend. exit $? } snap=git-snapshot-$(date +"%Y%m%d") git-tar-tree origin $snap | gzip -9 > $PROJ-$DATE.tar.gz - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html