ouyangfl ouyangfl
关注数: 0 粉丝数: 7 发帖数: 603 关注贴吧数: 20
rsync推送出现错误。 首先, rsync服务端 [root@Backup-Server ~]# cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core) [root@Backup-Server ~]# uname -r 3.10.0-1127.19.1.el7.x86_64 [root@Backup-Server ~]# rpm -qa rsync rsync-3.1.2-10.el7.x86_64 [root@Backup-Server ~]# grep rsync /etc/passwd rsync:x:2500:2500::/home/rsync:/sbin/nologin 节点端 [root@Web-server-0 ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [root@Web-server-0 ~]# uname -r 3.10.0-862.el7.x86_64 [root@Web-server-0 ~]# rpm -qa rsync rsync-3.1.2-4.el7.x86_64 [root@Web-server-0 ~]# grep rsync /etc/passwd rsync:x:2500:2500::/home/rsync:/sbin/nologin 然后, 服务端配置 cat /etc/rsyncd.conf ###rsync_config________start ###created by oym at 2020-10-4 ###rsyncd.conf start uid = rsync gid = rsync use chroot = no max connections = 200 timeout = 200 pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock log file = /var/logrsyncd.log [backup] path = /backup/ ignore errors read only = false list = false hosts allow = 192.168.49.0/24 hosts deny = 0.0.0.0/32 auth users = rsync_backup secrets file = /etc/rsync.password #rsync_config_______end [root@Backup-Server ~]# ll -d /backup/ drwxr-xr-x. 2 rsync rsync 41 Dec 11 16:01 /backup/ [root@Backup-Server ~]# ll /etc/rsync.password -rw------- 1 root root 20 Dec 11 15:39 /etc/rsync.password 节点端密码文件一样600。 然后推送的时候,文件可以推送过去,权限会从644自己变成600,属主和组变成rsync。并提示错误: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2] 无论是用模块推送,还是手动路径推送。 请大佬指点一下,是哪错了。 [root@Web-server-1 ~]# rsync -avzp /bak/etc.2020-11-01-16.tar.gz.01 rsync://[email protected]/backup/ --password-file=/etc/rsync.password
1 下一页