错误整体记录
rsync
1.not a regular file
2.remote command not found
3.Connection Refuse
错误详细
rsync服务
1.not a regular file 不是普通文件
scp默认只能复制普通文件 与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
远程服务器中没有这个命令
检查远程服务器是否安装了rsync 没有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通对应服务器
[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]