`
standalone
  • 浏览: 597936 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

use "--links" option of rsync

 
阅读更多
Today I used rsync to copy some files but I found for symbolic links it will ignore them if you just use simple command line:

rsync SRC DEST

With google, I finally figure out I need to add the "--links" option.

引用
       --copy-links
              Turn all symlinks into normal files (leaving no symlinks for any
              other options to affect).

       --links --copy-unsafe-links
              Turn all unsafe symlinks into files and duplicate all safe  sym-
              links.

       --copy-unsafe-links
              Turn  all unsafe symlinks into files, noisily skip all safe sym-
              links.

       --links --safe-links
              Duplicate safe symlinks and skip unsafe ones.

       --links
              Duplicate all symlinks.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics