通过OSX ssh rsync保留别名 [英] Preserving aliases over OSX ssh rsync

查看:102
本文介绍了通过OSX ssh rsync保留别名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在OSX(Yosemite)上的ssh上通过rsync保留别名来保留时间

I'm having a devil of a time preserving aliases with rsync over ssh on OSX (Yosemite)

rsync -av -e ssh me@N.N.N.N:/Users/me/stuff/ /Users/me/stuff

不保留别名.它在目标上创建别名...但是它不指向原始文件(在目标上).打开Finder窗口,在源上打开文件共享",然后拖放以保留别名,但这是到目前为止我唯一确定了如何执行此操作的方法,并且我希望使用非GUI解决方案.除了rsync之外,其他东西还能在ssh上工作吗?

does not preserve aliases. It makes an alias on the destination... but it doesn't point to the original file (on the destination). Firing up a Finder window, turning on File Sharing on the source, and drag and dropping preserves aliases, but that's the only way I've figured out how to do this so far, and I would prefer a non-GUI solution. Would something besides rsync work over ssh?

我已经尝试了本机OSX rsync和Homebrew的.

I've tried both native OSX rsync as well as Homebrew's.

预先感谢超级!

推荐答案

使用-E选项.别名文件包括资源派生. -E选项记录为:

Use the -E option. Alias files include resource forks. The -E option is documented as:

  -E, --extended-attributes
          Apple specific option  to  copy  extended  attributes,  resource
          forks,  and  ACLs.   Requires at least Mac OS X 10.4 or suitably
          patched rsync.

这篇关于通过OSX ssh rsync保留别名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆