当前位置: 首页 > 图文教程 > 服务器 > Windows服务器 > cwrsync 四步实现windows备份

Windows服务器
Windows Server 2003 R2 Beta 2将公测
Windows 2003组策略和安全模板的应用
Windows 2003 64位正式版抢先体验
微软发布WinServer2003 R2 Beta2
Windows Server 2003 安全配置实战演习
快速关闭Windows 2003的三种方法
windows 2003服务器防止海洋木马的安全设置
制作无盘Windows 2003之无忧Ghost文件
为Windows 2003加装视频压缩
安全配置向导为Win2003打造“铜墙铁壁”
用Win 2003 SP1向导功能打造安全服务器
在Win 2003系统中挖掘免费刻录软件
Windows 2003优化系列之系统服务的开关
发扬DIY精神 为Windows 2003移植系统还原
活学活用Win2003分区增容功能
轻松管理Win 2003的“远程桌面”
自动管理Windows 2003好用的“远程桌面”
活学活用Windows Server 2003分区增容功能
使用Web接口远程维护Win2003服务器
教你一招:Windows2003系统优化大有玄机

Windows服务器 中的 cwrsync 四步实现windows备份


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-04   浏览: 65 ::
收藏到网摘: n/a

对于rsync数据同步经常会遇到一些问题,下面的对于这些问题的解决,一定要逐个测试 服务器端:
http://rsync.samba.org/ 服务器端(cwRsyncServer)。
安装目录: E:\cwRsyncServer
端口: 52326
ip: 219.152.120.82
一:修改cwRsyncServer配置文件 E:\cwRsyncServer\rsyncd.conf
#########
port = 52326
use chroot = false
strict modes = false
read only = yes
list = no
hosts allow = *
max connections = 10
secrets file = rsyncd.secrets #指定用户登录的密码文件
motd file = rsyncd.motd #连接上rsync server时显示的欢迎信息
log file = rsyncd.log
pid file = rsyncd.pid
transfer logging = yes
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/c/work
read only = false
transfer logging = yes
[t_task]
path = /cygdrive/c/work
read only = false
transfer logging = yes
#################################
二:在E:\cwRsyncServer目录下新建密码文件 rsyncd.secrets 内容为用户名:密码
如: tly:fjs249slke
客户端:
http://rsync.samba.org/ 下载cwRsync客户端(cwRsync)
安装目录: E:\cwRsync
三:在E:\cwRsyncServer目录下新建密码文件 rsyncd.secrets 内容为密码
如:fjs249slke
四:开始–>运行–>cmd 输入以下命令即可同步服务器端t_task模块到客户端e:/y目录下。
E:\cwRsync\bin\rsync.exe -vazu –exclude article/ –progress –delete –
password-file=E:\cwRsync\rsyncd.secrets
rsync://[email protected]:52326/t_task /cygdrive/e/y
照做可同步服务了,如果不行,1.检查服务器是否有开服务端口,命令行输入( netstat -a ) 可查看服务器开的端口。就是上面的52326端口。2.客户端命令行输入( telnet 服务端ip 服务端口 ) 能否连接服务器端。3.检查配置文件是否跟上面一样。
注:以上为匿名连接入服务器端,一般会在模块里添加 auth user= odinxu 指定用户,一定要注意,指定的用户必须要登陆才能进行同步服务。 我在这里掐了很久,模块里指定了用户,用户又没有登陆,导致出错。
新手常出现的错误:
错误1: rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(794) [receive
r=3.0.2]
解决:很大可能是服务器端没有开启 rsync 服务。开启服务。
错误2:@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1495) [rec
eiver=3.0.2]
解决:服务器端同步目录没有权限,cwrsync默认用户是Svcwrsync。为同步目录添加用户Svcwrsync权限。
错误3:@ERROR: failed to open lock file
rsync error: error starting client-server protocol (code 5) at main.c(1495) [rec
eiver=3.0.2]
解决:配置文件 rsync.conf中添加 lock file = rsyncd.lock 即可解决。
更具体的实现方法可以参考:http://www.ruanchen.com/rticle/19663.htm