使用rsync从windows传文件到linux

. precondition

A server installed rsync in daemon mode, like rsyncd.cc::mod/

1. msys2 installation

download msys2 and install it like msys2-x86_64-20161025.exe    address: https://msys2.github.io/

Supposing you install rsync in directory of D:\app\msys64

2. rsync install. Rsync is not installed by msys2 by default.

Open msys2 shell and execute `pacman -S rsync` to install rsync.

3. check

create a file in C:\, like C:\test.txt, and open command prompt(cmd) to execute the following command:

set bins=D:\app\msys64\usr\bin

set path=%bins%

rsync /d/test.txt  rsyncd.cc::mod/

# After transit, you may check the text.txt in the server, namely rsyncd.cc.If the file exists, then the transit succeeded, or you should check your configuration, like file permission and module permission of the target server, etc..

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容