@ERROR: chdir failedlinux
rsync error: error startingclient-server protocol (code 5) at main.c(1503) [sender=3.0.6]socket
服務端指定模塊沒有對應目錄ide
[root@nfs01 ~]# mkdir –p/backup 在服務端建立指定模塊對應目錄ui
sending incremental file listthis
./spa
rsync: failed to set times on"." (in backup): Operation not permitted (1)code
nfs01_172.16.1.31/server
rsync: recv_generator: mkdir"nfs01_172.16.1.31" (in backup) failed: Permission denied (13)blog
*** Skipping any contents fromthis failed directory ***ip
sent 106 bytes received 15 bytes 80.67 bytes/sec
total size is 655 speedup is 5.41
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]
1> 服務端配置文件中指定的用戶和模塊指定的目錄的屬主屬組不一樣
2> 服務端模塊指定的目錄屬組屬組沒有權限
將模塊指定目錄的屬主屬組修改成 配置文件中指定的 uid gid
[root@nfs01 ~]# chown rsync.rsync /backup 配置文件中指定的用戶和組
sending incremental file list
rsync: ERROR: cannot statdestination "." (in backup): Permission denied (13)
rsync error: errors selectinginput/output files, dirs (code 3) at main.c(554) [receiver=3.0.6]
rsync: read error: Connectionreset by peer (104)
rsync error: error in rsyncprotocol data stream (code 12) at io.c(759) [sender=3.0.6]
服務端rsync對目錄操做權限不足
修改對應目錄權限爲755
[root@backup ~]# chmod 755 /backup/
@ERROR: auth failed on module backup
rsync error: error startingclient-server protocol (code 5) at main.c(1503) [sender=3.0.6]
1> 客戶端密碼文件的權限不是600
2> 服務端密碼文件不是600
3> 服務端密碼文件不存在(名字寫錯了/沒有建立/配置文件參數寫錯了)
4> 服務端密碼文件裏保存的用戶名和密碼不正確
@ERROR: Unknown module ‘backup'
rsync error: error starting client-server protocol (code 5) at main.c(1522)[receiver=3.0.3]
1> 推送/拉取命令寫錯了
2> 服務端模塊名字寫錯了
rsync: write failed on"/home/backup2010/wensong": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(302) [receiver=3.0.7]
rsync: connection unexpectedly closed (2721 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(601)[generator=3.0.7]
服務端磁盤空間被佔滿
rsync: failed to connect to172.16.1.41: No route to host (113)
rsync error: error in socket IO(code 10) at clientserver.c(124) [sender=3.0.6]
關服務端selinux 和 iptabs 防火牆
感謝老男孩教育