Rsync synchronous error and solutions encountered

Rsync synchronous error and solutions encountered

 
Small technology expert   2017-11-12 18:27:00  Browse 1125
 

In sync client operating:

[root@www1 dbbackup]# /usr/bin/rsync  -avzP  --password-file=/tmp/passwd.txt  [email protected]::dbdata /data/backup/6.100.25.07/dbbackup

rsync: read error: Connection reset by peer (104)

rsync error: error in rsync protocol data stream (code 12) at io.c(759) [receiver=3.0.6]

 

Solution:

In the end rsyncd.conf service operations:

xnetid start 

rsync: read error: Connection reset by peer (104) 

rsync error: error in rsync protocol data stream (code 12) at io.c(759) [receiver=3.0.5] 

View rsync log 

rsync: unable to open configuration file "/etc/rsyncd.conf": No such file or directory 

xnetid find the location of the default configuration file is / etc, create a soft link depending on the circumstances. E.g: 

LN -s /etc/rsyncd/rsyncd.conf /etc/rsyncd.conf 

Or change the default configuration file path specified in the configuration file /etc/xinetd.d/rsync. 

[root@localhost rsyncd]# ln -s /etc/rsyncd/rsyncd.conf /etc/rsyncd.conf

[root@localhost rsyncd]# ll /etc/rsyncd.conf 

lrwxrwxrwx 1 root root 23 8月   1 13:25 /etc/rsyncd.conf -> /etc/rsyncd/rsyncd.conf

 

 

rsync permissions issue:

[root@localhost 20170807]# /usr/bin/rsync -avH --port=873 --progress [email protected]::ppwxweb /data/backup/14.203.190.21 --password-file=/tmp/passwdwx.txt

receiving incremental file list

rsync: send_files failed to open "root" (in ppwxweb): Permission denied (13)

sent 83 bytes  received 480 bytes  1126.00 bytes/sec

total size is 88142423  speedup is 156558.48

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1505) [generator=3.0.6]

 

Start permissions are: www.www now for root, no longer being given:

[root@localhost backup]# egrep "uid|gid|read" /etc/rsyncd.conf

uid = root

gid = root

read only = no

rsync synchronization error:

 

[root@localhost 104.203.190.21]# /usr/bin/rsync -avH --port=873 --progress [email protected]::ppwxdb /data/backup/14.203.190.21/dbbackup --password-file=/tmp/passwdwx.txt

 

@ERROR: chdir failed

rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]

The reason is:

[root@localhost dbackup]# grep pat /etc/rsyncd.conf|tail -1

path = /data/backup/dbackup

 

/data/backup/dbackup 写成了/data/backup/dbbackup

 

Guess you like

Origin www.cnblogs.com/xuanbjut/p/12631492.html