Windows Linux 之间rsync同步CODE文件 一.环境Windows:OS:Microsoft Windows Web Server 2008 SP1IP:192.168.88.197 Linux:OS:CentOS release 6.4 (Final)IP:192.168.88.238 二. Windows 下安装服务端软件并配置1.cwRsyncServer(安装过程略),注意安装过程会创建一个启动服务的用户启动cwsyncservices.msc-找到RsyncServer
1.接受端安装rsync yum -y install rsync 2.配置同步模块 vim /etc/rsyncd.conf # any name you like [backup] # destination directory for copy path = /data/backup # hosts you allow to access hosts allow = 192.168.88.88 hosts deny = * list = true uid = root gid = root