码迷,mamicode.com
首页 > Windows程序 > 详细

windows服务期间rsync服务端与客户端的数据同步

时间:2015-05-23 18:30:42      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:server   下载地址   客户端软件   

一、软件

服务器端与客户端软件分别为cwRsyncServer_4.2.0和cwRsync4.2.0

下载地址为:http://www.jb51.net/softs/39404.html


二、环境介绍

server端系统为win 2003,其IP为10.240.210.88;客户端端为winXP SP3,其IP为10.240.210.206


三、安装

分别在服务端与客户端安装对应版本的软件,默认安装即可。我这里服务端的安装路径为:E:\Program Files\ICW,客户端安装路径为


四、配置

  1. 服务器端

进入安装目录所在的根目录,编辑配置rsyncd.conf


use chroot = false
strict modes = false
hosts allow = *   #允许任意IP
lock file = rsyncd.lock 
max connections = 5
port = 28950   #指定端口号
charset=UTF-8  #指定字符集
#pid = 0
uid = 0    #运行rsync守护进程的用户 0为不限制
gid = 0    #运行rsync守护进程的组   0为不限制
log file = rsyncd.log  #日志文件存放位置

# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
#[test]
#path = /cygdrive/c/work
#read only = false
#transfer logging = yes

[data]
path = /cygdrive/e/backup   #待备份的目录
auth users =user            #指定授权用户名
secrets file = etc/rsyncd.secrets  #指定密码存储文件
read only = no         
transfer logging = yes
hosts allow = 10.240.210.206      #只允许10.240.210.206

密码文件rsyncd.secrets
存放在安装目录下的名为etc的文件夹中。

其内容为:

user:!@#qwe       格式为用户名:密码

需将其权限设置为600,即其他组没有读权限。同时要保证用户cwRsyncServer既是该文件拥有者又对其具有读写权限。设置如下:

技术分享


本文出自 “也曾鲜衣怒马年少时” 博客,请务必保留此出处http://xoyabc.blog.51cto.com/7401264/1654473

windows服务期间rsync服务端与客户端的数据同步

标签:server   下载地址   客户端软件   

原文地址:http://xoyabc.blog.51cto.com/7401264/1654473

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!