window安装Rsync同步,使用Rsync同步时报错:The source and destination cannot both be remote. rsync error: syntax o
·
安装
安装请看这篇博客
报错信息

解决

总结
由此得出:cwRsync 不能直接认识本地盘,需要使用/cygdrive/
如上所示:
C:\apps\cwRsync_5.5.0_x86_Free\bin>rsync -avz --progress --bwlimit=1000 /cygdrive/C/ideaCode/target/es-demo-0.0.1-SNAPSHOT.jar 10.10.25.7::share
/cygdrive/C/ideaCode/target/es-demo-0.0.1-SNAPSHOT.jar这个代表的是C:/ideaCode/target/es-demo-0.0.1-SNAPSHOT.jar
还有需要注意的是:在window中使用的目录的\,而在这个里面所使用的是/
更多推荐
所有评论(0)