錯(cuò)誤整體記錄
rsync
1.not a regular file
2.remote command not found
3.Connection Refuse
錯(cuò)誤詳細(xì)
rsync服務(wù)
1.not a regular file 不是普通文件
scp默認(rèn)只能復(fù)制普通文件 與cp類似
加上-r 即可
[root@backup ~]# scp /etc/ 172.16.1.31:/tmp
root@172.16.1.31's password:
/etc: not a regular file
2.remote command not found
遠(yuǎn)程服務(wù)器中沒(méi)有這個(gè)命令
檢查遠(yuǎn)程服務(wù)器是否安裝了rsync 沒(méi)有yum安裝即可
[root@backup ~]# rsync -av /etc 172.16.1.31:/tmp
root@172.16.1.31's password:
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(226) [sender=3.1.2]
3.Connection refused
連接拒絕
檢查是否能ping通對(duì)應(yīng)服務(wù)器
[root@backup ~]# rsync -avz /etc 176.16.1.31:/tmp
ssh: connect to host 176.16.1.31 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]