首页
技术博客
PHP教程
数据库技术
前端开发
HTML5
Nginx
php论坛
新用户注册
|
会员登录
PHP教程
技术博客
编程问答
PNG素材
编程语言
前端技术
Android
PHP教程
HTML5教程
数据库
Linux技术
Nginx技术
PHP安全
WebSerer
职场攻略
JavaScript
开放平台
业界资讯
大话程序猿
登录
极速注册
取消
热门标签 | HotTags
colors
sftp
负载均衡
grep
压力测试
awk
路由器
4层
apache
ftp
cron
容器
ubuntu
k8s
tomcat
运维
dns
unix
服务器
shell
touch
server
vagrant
linux
centos
kubectl
centos7
fabric
tengine
7层
zsh
devops
debian
stdout
ssh
交换机
service
sudo
jenkins
crontab
log4j
docker
grafana
port
curl
syslog
当前位置:
开发笔记
>
运维
> 正文
cwrsync四步实现windows备份
作者:rui1大姑娘_939 | 来源:互联网 | 2022-01-22 14:17
对于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://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
服务器
https
写下你的评论吧 !
吐个槽吧,看都看了
会员登录
|
用户注册
推荐阅读
服务器
SSL协议、TLS协议,使用哪一种更安全?
在金融银行业,保护机密信息的安全至关重要。由于财务记录完全通过在线数据库维护,因此实施保护客户、银行和金融机构免受黑客攻击的安全功能比以往任何时候都更加重要。安全套接字层(SSL) ...
[详细]
蜡笔小新 2024-09-30 21:45:53
centos
最好用的linux发行版,最好用的Linux发行版
参加我们的第七届年度调查。有些来了又去了,但是今天有数百种Linux发行版运行良好。发行版,程序包管理器和桌面的结合为Linux用户创建了无数的定制环境。尽管存在一些共性,但我们也 ...
[详细]
蜡笔小新 2024-09-30 21:45:26
服务器
自动化部署服务——AWS CodeDeploy 快速入门
https:amazonaws-china.comcnblogschinagetting-started-with-codedeploy作为DevOps和微服务的深入践行者 ...
[详细]
蜡笔小新 2024-09-30 20:35:57
centos
CentOS8.4 安装PHP7.4.25
1、下载官网:https:www.php.netdownloads#cdmydata#wgethttps:www.php.netdistributionsphp ...
[详细]
蜡笔小新 2024-09-30 19:32:33
centos
以下内容|尾部_quarkus实战之一:准备工作
篇首语:本文由编程笔记#小编为大家整理,主要介绍了quarkus实战之一:准备工作相关的知识,希望对你有一定的参考价值。欢迎访问我的GitHub ...
[详细]
蜡笔小新 2024-09-30 16:17:04
服务器
局限性_Scrum框架的局限性
篇首语:本文由编程笔记#小编为大家整理,主要介绍了Scrum框架的局限性相关的知识,希望对你有一定的参考价值。在很多工作坊的讨论中, ...
[详细]
蜡笔小新 2024-09-30 14:41:28
grep
Composer速度慢,修改为阿里云全量镜像
全局配置修改:composerconfig-grepo.packagistcomposerhttps:mirrors.aliyun.comcomposer查看当前C ...
[详细]
蜡笔小新 2024-09-30 20:45:14
grep
实验六 团队作业2:团队项目选题
实验六团队作业2:团队项目选题实验时间2019-4-18(19)Deadline:2019-4-2410:00,以团队随笔博文提交至班级博 ...
[详细]
蜡笔小新 2024-09-30 19:00:12
grep
前端微服务二
为了解决庞大的一整块后端服务带来的变更与扩展方面的限制,出现了微服务架构(Microservices):微服务是面向服务架构(SOA)的一种变体,把应用程序设计成一系列松耦合的细粒 ...
[详细]
蜡笔小新 2024-09-30 18:35:19
grep
腾讯投资十勇士,后者致力于精品游戏研发
企查查APP显示,近日,浙江十勇士网络科技有限公司发生工商变更,新增股东广西腾讯创业投资有限公司,同时公司注册资本由1319.44万元人民币增加至1552.28万元人民币。企查查信 ...
[详细]
蜡笔小新 2024-09-30 18:27:26
grep
开发笔记:(源码开放) React + webpack3 多页面应用 及 常见问题解答
本文由编程笔记#小编为大家整理,主要介绍了(源码开放)React+webpack3多页面应用及常见问题解答相关的知识,希望对你有一定的参考价值。 ...
[详细]
蜡笔小新 2024-09-30 18:22:40
grep
c调用c++对象中的方法
普通调用https:www.cnblogs.comYogurshinep3913073.htmlhttps:zhidao.baidu.comquestion531286375.h ...
[详细]
蜡笔小新 2024-09-30 17:40:02
grep
C++ 基础面试题2
请写出一下程序的输出内容***2018032122:02:03**Brief:**Author:ZhangJianWei**Email:Dream_Dog163.com* ...
[详细]
蜡笔小新 2024-09-30 17:25:03
linux
GoogleLog(GLog)源码分析
本文分析和介绍了GLo ...
[详细]
蜡笔小新 2024-09-30 15:14:04
linux
卷积的三种类型:full, same, valid
转载自:https:blog.csdn.netleviopkuarticledetails80327478通常用外部api进行卷积的时候,会面临mod ...
[详细]
蜡笔小新 2024-09-30 15:10:55
rui1大姑娘_939
这个家伙很懒,什么也没留下!
Tags | 热门标签
colors
sftp
负载均衡
grep
压力测试
awk
路由器
4层
apache
ftp
cron
容器
ubuntu
k8s
tomcat
运维
dns
unix
服务器
shell
touch
server
vagrant
linux
centos
kubectl
centos7
fabric
tengine
7层
RankList | 热门文章
1
C++类对象模型之内存布局
2
tip8:CentOS8安装ftp服务器
3
Spring bean的初始化及销毁
4
谓词 过滤
5
struts2完成图片上传
6
局域网代理服务器如何搭建?哪些好处?
7
《苦乐相倚曲》翻译 原文赏析诗人唐元稹
8
傻瓜式安装MySQL_windows下傻瓜式安装mysql5.7
9
关于Range()函数的理解及代码解释
10
[linux实验] 管道及管道间的通信 信号
11
c语言贪吃蛇怎样不同颜色,c语言简单贪吃蛇
12
Thinkphp3.2.3关于开启DEBUG正常,关闭DEBUG就报错模版无法找到,页面错误!请稍后再试~...
13
Object类中的两个方法——wait和notify使用总结
14
mac goland激活码[最新免费获取]
15
VBA IE为webage表格增值
PHP1.CN | 中国最专业的PHP中文社区 |
DevBox开发工具箱
|
json解析格式化
|
PHP资讯
|
PHP教程
|
数据库技术
|
服务器技术
|
前端开发技术
|
PHP框架
|
开发工具
|
在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved |
京公网安备 11010802041100号
|
京ICP备19059560号-4
| PHP1.CN 第一PHP社区 版权所有