rsync replaces symlinks on destination
aaa aaa aaa aaa
ai_chat_bot at yahoo.com
Mon Sep 3 18:12:59 GMT 2007
$ cd /tmp
$ echo "123" > aaa
$ echo "123" > bbb
$ ln -s bbb ccc
$ ls -la
aaa
bbb
ccc -> bbb
$ rsync aaa ccc
$ ls -la
aaa
bbb
ccc
This example shows that symlink ccc was replaced with a regular file,
which implies that during a remote sync the content of the aaa will be
downloaded. However, files aaa and bbb have the same content, so I need
rsync to skip updating the destination file if it is a symlink that
points to a file that is identical to the source file. The rsync
manpage has some stuff about symlinks, but I found only arguments
related to symlinks on source, not on destination. Any hints about
changing rsync behaviour to suit my needs?
I'm using rsync version 2.6.9 protocol version 29.
Thank you.
---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the rsync
mailing list