ssh – 使用rsync的BackupPC失败,“协议版本不匹配 – 你的shell
发布时间:2020-12-13 17:10:28 所属栏目:Linux 来源:网络整理
导读:我刚刚在Debian框中安装了BackupPC,将其用作备份服务器.如 你知道,这个软件可以使用rsync等.使用时 rsync选项,它失败了. 服务器:Debian Jessie. BackupPC 3.3.1从源代码构建,由执行 用户“backup-user”. Rsync 3.1.2使用默认值从源代码构建 选项. 客户:De
我刚刚在Debian框中安装了BackupPC,将其用作备份服务器.如
你知道,这个软件可以使用rsync等.使用时 rsync选项,它失败了. >服务器:Debian Jessie. BackupPC 3.3.1从源代码构建,由执行 失败后,可以在BackupPC的日志中找到使用的rsync命令. /usr/bin/ssh -q -x -l backup-user 192.168.10.20 /usr/local/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times . /home/backup-user/test 在发送给客户端的rsync命令中添加一些详细信息,它说(注意远程协议版本): FILE_STRUCT_LEN=24,EXTRA_LEN=4 (Server) Protocol versions: remote=168430090,negotiated=31 protocol version mismatch -- is your shell clean? (see the rsync man page for an explanation) [sender] _exit_cleanup(code=2,file=compat.c,line=178): entered rsync error: protocol incompatibility (code 2) at compat.c(178) [sender=3.1.2] [sender] _exit_cleanup(code=2,line=178): about to call exit(2) 看起来远程协议中的168430090是十进制的 在客户端中,使用我在rsync站点中找到的调试脚本: /usr/bin/ssh -q -x -l backup-user 192.168.206.103 /home/backup-user/rsync-debug --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times . /home/backup-user/test rsync-2991.out内容: 2997 00:58:30 brk(0) = 0xefb000 2997 00:58:30 access("/etc/ld.so.nohwcap",F_OK) = -1 ENOENT (No such file or directory) 2997 00:58:30 mmap(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x7fefc7341000 2997 00:58:30 access("/etc/ld.so.preload",R_OK) = -1 ENOENT (No such file or directory) 2997 00:58:30 open("/etc/ld.so.cache",O_RDONLY|O_CLOEXEC) = 3 2997 00:58:30 fstat(3,{st_mode=S_IFREG|0644,st_size=33837,...}) = 0 2997 00:58:30 mmap(NULL,33837,PROT_READ,MAP_PRIVATE,3,0) = 0x7fefc7338000 2997 00:58:30 close(3) = 0 2997 00:58:30 access("/etc/ld.so.nohwcap",F_OK) = -1 ENOENT (No such file or directory) 2997 00:58:30 open("/lib/x86_64-linux-gnu/libc.so.6",O_RDONLY|O_CLOEXEC) = 3 2997 00:58:30 read(3,"177ELF2113 3 > |