echo "#!/bin/bash" > /tmp/cctest echo "dstdir=\$(dirname \$1)" >> /tmp/cctest echo "echo rsync -av \$1 \$bakdir/\$dstdir" >> /tmp/cctest export bakdir=/media/hdext/git find /home/marc/ -type d -name .git -exec bash -x /tmp/cctest {} \;