你好,我正在使用rsync从我的Mac备份到文件服务器runnning linux,我看到以下错误:
rsync -e ssh -vaxE --delete --ignore-errors 192.168.1.3:/bkup/mac/Users/dave/ /Users/dave/Desktop/dave [email protected]'s password: rsync: on remote machine: --extended-attributes: unknown option rsync error: syntax or usage error (code 1) at main.c(1441) [server=3.0.5] rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-37.3/rsync/io.c(452) [receiver=2.6.9]
…清除足够的错误,但-v显示两台机器的以下内容:
MAC(客户端/本地):
rsync version 2.6.9 protocol version 29 ... Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, inplace, IPv6, 64-bit system inums, 64-bit internal inums
LINUX(服务器/远程):
rsync version 3.0.5 protocol version 30 ... Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append, ACLs, xattrs, iconv, symtimes
…所以给Linux框中说,它支持xattrs为什么会投诉Mac的请求扩展属性?
FWIW Mac正在运行OS X 10.6.1&服务器运行的是Ubuntu 2.6.28-15-generic – 两台机器都运行最新的标准软件包(在默认情况下,没有任何一方安装rsync的特殊口味) 。
任何洞察赞赏:-)
标志-E / –extended-attributes不是官方rsync发行版的一部分,是官方rsync发行版不支持的时候Apple提供的补丁。
现在,rsync verson 3.x已经以与Apple的补丁不兼容的方式重新实现了扩展属性支持。 根据3.0.6的rsync手册页 ,扩展属性支持现在用–xattrs或-X参数完成。 它看起来完全不接受–extended-attributes标志。
您将不必指定-E或在本地安装支持新实现的rsync更新版本。