我试图使用rsync和ssh来区分两个Linux系统上的所有文件,方法是使用-运行选项,这样它就不会同步任何文件/文件夹。我做错了什么?运行此命令时,我当前位于根目录中。
命令:
rsync --dry-run -v 'ssh -p 22' root@192.168.86.128:/输出:
[root@localhost /]# rsync --dry-run -v 'ssh -p 22' root@192.168.86.128:/
The authenticity of host '192.168.86.128 (192.168.86.128)' can't be established.
RSA key fingerprint is 22:e5:15:2e:0b:69:5d:cd:63:84:83:61:b7:ce:19:56.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.86.128' (RSA) to the list of known hosts.
root@192.168.86.128's password:
rsync: link_stat "/ssh -p 22" failed: No such file or directory (2)
sent 16 bytes received 12 bytes 1.70 bytes/sec
total size is 0 speedup is 0.00 (DRY RUN)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]
[root@localhost /]#发布于 2016-11-22 19:28:27
这在将系统A与系统B进行比较时起作用。
rsync --dry-run -r root@192.168.86.129:/ /在将系统B与系统A进行比较时,这是有效的:
rsync --dry-run -r root@192.168.86.128:/ /发布于 2016-11-24 10:47:09
梅尔德用友好的界面递归地比较文件夹。
https://unix.stackexchange.com/questions/325245
复制相似问题