linux 跟 windows 文件同步
windows下需要安装cygwin cwRsync客户端, linux安装rsync
批处理文件:
cd c:\Program Files\cwRsync_client\bin
c:
rsync -avz --progress --exclude="*svn*" --exclude="*.conf" --exclude="*.key" -e "\"/cygdrive/c/Program Files/cwRsync_client/bin/ssh.exe\"" "/cygdrive/e/server/vd_project" lhf@192.168.1.244:/home/lhf/
pause