rsync -av --exclude="*.svn" $WORKSPACE/scripts/ targethost:/path/to/scripts ssh targethost sh /path/to/scripts/mkdir.sh