cwrsync 四步实现windows备份
服务器端:
http://rsync.samba.org/ 服务器端(cwRsyncServer)。
安装目录: E:cwRsyncServer
端口: 52326
ip: 219.152.120.82
一:修改cwRsyncServer配置文件 E:cwRsyncServerrsyncd.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:cwRsyncbinrsync.exe -vazu –exclude article/ –progress –delete –
password-file=E:cwRsyncrsyncd.secrets
rsync://odinxu@219.152.120.82: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 即可解决。
更具体的实现方法可以参考:https://www.jb51.net/article/19663.htm
您可能感兴趣的文章:
- 在Windows中配置Rsync同步文件的方法
- 用rsync实现windows与linux文件同步的方法
- windows下rsync的数据同步安装配置方法
- windows下使用cwRsync定期备份网站(服务器文件同步)
- cwrsync实现从linux到windows的数据同步备份
- 使用cwRsync实现windows下服务器文件定时同步备份(附错误处理方法)
- 用cwrsync同步windows下数据的简单配置方法
- Windows rsync服务器备份配置实例
- windows2008系统中rsync计划任务返回0x1问题处理
栏 目:Windows
下一篇:用Rsync(cwRsync)将Dreamhost的数据备份到Windows上
本文地址:https://www.idc91.com/fuwuqizl/2772.html
您可能感兴趣的文章
- 06-17windows server时间同步设置的方法步骤
- 06-17Windows上安装WSL+Ubuntu来运行Linux环境
- 06-17Windows服务器禁用ping功能的操作指南
- 06-17IIS服务器禁止某个IP或IP地址范围访问网站的方法
- 06-17IIS中配置HTTPS证书的实现步骤
- 06-17Windows Server使用IIS作为SMTP服务器的实现
- 06-17IIS部署Linux环境下的cer证书步骤
- 06-17Windows 2012 R2自建安装IIS 8.5的实现步骤
- 06-17windows server 防火墙添加出入站规则方法小结
- 06-17Windows Server 2016 使用IIS配置FTP


阅读排行
推荐教程
- 05-27Windows Server 2012 没有远程桌面授权服务器可以提供许可证,远程会话被中
- 06-12windows2008+iis7环境SSL部署https证书
- 11-07windows server2016安装oracle 11g的图文教程
- 06-12windows2003系统如何部署SSL证书站点https访问
- 05-27Win10下配置IIS10并支持调试ASP程序的步骤
- 05-27Windows 2008任务计划执行bat脚本失败返回0x1的解决方法
- 11-07windows server 2019 无法安装AMD Radeon RX 6600 XT
- 11-07Windows server 2012 NTP时间同步的实现
- 11-07Windows Server 2022 超融合部署(图文教程)
- 05-27IIS 完全重装操作步骤