Hullo all – 我使用rsync从我的mac备份到运行
linux的文件服务器,我看到以下错误:
rsync -e ssh -vaxE --delete --ignore-errors 192.168.1.3:/bkup/mac/Users/dave/ /Users/dave/Desktop/dave dave@192.168.1.3'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,hardlinks,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补丁不兼容的方式重新实现了扩展属性支持.根据rsync manual page for 3.0.6,扩展属性支持现在使用–xattrs或-X参数完成.它似乎根本不接受–extended-attributes标志.
您将不必指定-E或在本地安装支持新实现的rsync的更新版本.