Rsync安装配置--windows

 一、安装cwRsyncServer服务器端

1、  安装cwRsyncServer_4.0.4_Installer

l  默认安装

l  提示用户名密码时,用户名密码为空,以windows身份启动服务

2、  启动cwRsyncServer服务

l  右键我的电脑管理服务右键cwRsyncServer服务登陆,选中一windows身份登录

 

二、 配置服务器端cwRsyncServer配置文件

l  开始程序—cwRsyncServer—rsync.conf,修改一下内容

pid file = rsync.pid

port = 873                            //默认通讯端口,可修改

 

use chroot = false

strict modes = false

 

log file = rsyncd.log

 

uid=0

gid=0

 

hosts allow=192.168.106.0/24               //允许连接到服务器端的IP,不同IP用空格隔开

address=192.168.106.15                    //服务器端IP地址

 

# Module definitions

# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work

#

[test]                                     //模块名,可根据需求添加

path = /cygdrive/c/test                      //需要同步的文件路径,本例中是c:\test

read only = false

transfer logging = yes

 

三、 安装cwRsyncServer客户端

1、安装cwRsyncServer_4.0.4_Installer

l  默认安装

l  提示用户名密码时,用户名密码为空,以windows身份启动服务

3、  客户端不需要启用cwRsyncServer服务。

 

四、 从服务器端同步文件

Rsync.exe  –vzrtopg  --delete  --progress {服务器ip}::{模块名}  {本地目录}

本文出自 “姜浩天的博客” 博客,转载请与作者联系!

你可能感兴趣的:(windows,职场,rsync,休闲,rsync安装配置)