Yakov Hrebtov
2004-12-16 05:36:05 UTC
Hello!
I need a suggestion.
How to copy broken symlink as symlink with rsync?
Example:
# mkdir src
# ln -s file-that-doesnt-exist src/broken-link
# rsync -a src/ dst/
# ls -l src/
total 0
lrwxrwxrwx 1 root root 22 Dec 16 10:31 broken-link -> file-that-doesnt-exist
# ls -l dst
total 0
I want src/ and dst/ to be identical after sync.
I need a suggestion.
How to copy broken symlink as symlink with rsync?
Example:
# mkdir src
# ln -s file-that-doesnt-exist src/broken-link
# rsync -a src/ dst/
# ls -l src/
total 0
lrwxrwxrwx 1 root root 22 Dec 16 10:31 broken-link -> file-that-doesnt-exist
# ls -l dst
total 0
I want src/ and dst/ to be identical after sync.
--
WBR, Yakov Hrebtov mailto:***@generation.ru
WBR, Yakov Hrebtov mailto:***@generation.ru