jQueryのgitリポジトリで実験
$ mkdir ../backup_test
$ git checkout 1.8.0
$ rsync -v -a --exclude=node_modules --exclude=.git . ../backup_test/current
$ find ../backup_test/current/|sort > ../a
$ git checkout 1.8.1
# -bのみ … 同じ場所に~がついてバックアップされる
$ rsync -b -a --exclude=node_modules --exclude=.git . ../backup_test/current
$ find ../backup_test/current/|sort > ../b