ITeye博客

use "--links" option of rsync

standalone · 2013-05-23 10:45 · linux · 操作系统 · Markdown

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.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。