Jack (@D_ebwmdp) 在 cwRsync_在windows和linux之间传输文件,用起来巨复杂.... 中发帖
user@HOSTNAME bin
$ rsync -avz -e “ssh -p PORT” /cygdrive/e/PATH/TO/SOURCE/ user@localhost:/PATH/TO/DESTINATION/
The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at main.c(1415) [Receiver=3.4.1]
user@HOSTNAME bin
$ pwd
/d/SOME/PATH/bin
user@HOSTNAME bin
cd /e
user@HOSTNAME e
pwd
/e
user@HOSTNAME e
$ rsync -avz -e “ssh -p PORT” “PATH/TO/...