首页 技术 正文
技术 2022年11月21日
0 收藏 562 点赞 3,653 浏览 1627 个字

Centos7    rsync守护进程上传文件失败

[root@nfs ~]# rsync -avz /etc rsync_backup@172.16.1.41::backup
sending incremental file list
rsync: read error: Connection reset by peer (104)
rsync error: error in socket IO (code 10) at io.c(785) [sender=3.1.2]

[root@backup ~]# systemctl status rsyncd
● rsyncd.service – fast remote file copy program daemon
Loaded: loaded (/usr/lib/systemd/system/rsyncd.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2019-01-15 22:29:50 CST; 5min ago
Main PID: 1245 (rsync)
CGroup: /system.slice/rsyncd.service
└─1245 /usr/bin/rsync –daemon –no-detach

Jan 15 22:29:50 backup systemd[1]: Started fast remote file copy program daemon.
Jan 15 22:29:50 backup systemd[1]: Starting fast remote file copy program daemon…
Jan 15 22:29:50 backup rsyncd[1245]: rsyncd version 3.1.2 starting, listening on port 873
Jan 15 22:30:20 backup rsyncd[1252]: Global parameter port found in module section!
Jan 15 22:30:20 backup rsyncd[1252]: params.c:Parameter() – Ignoring badly formed line …ors
Jan 15 22:30:30 backup rsyncd[1252]: name lookup failed for 172.16.1.31: Name or servic…own
Jan 15 22:30:30 backup rsyncd[1252]: connect from UNKNOWN (172.16.1.31)
Jan 15 22:30:30 backup rsyncd[1252]: rsync to backup/ from UNKNOWN (172.16.1.31)
Jan 15 22:30:30 backup rsyncd[1252]: ERROR: module is read only
Jan 15 22:30:30 backup rsyncd[1252]: rsync error: syntax or usage error (code 1) at mai….2]
Hint: Some lines were ellipsized, use -l to show in full.

后来尝试重新写配置文件,发现成功了

[root@backup ~]# vim /etc/rsyncd.conf

uid = rsync

gid = rsync

port = 873

fake super = yes

use chroot = no

max connections = 200

timeout = 600

ignore errors

read only = false

list = false

auth users = rsync_backup

secrets file = /etc/rsync.passwd

log file = /var/log/rsyncd.log

#####################################

[backup]

comment = welcome to oldboyedu backup!

path = /backup

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,944
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,469
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,283
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,099
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,729
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,766