rsync and broken symlinks

Wayne Davison wayned at
Thu Dec 16 08:23:06 GMT 2004

On Thu, Dec 16, 2004 at 10:36:05AM +0500, Yakov Hrebtov wrote:
> How to copy broken symlink as symlink with rsync?

Your example works fine for me, so run "rsync --version" and ensure that
it even has symlink support compiled into it.  E.g.:

rsync  version 2.6.3  protocol version 28
Copyright (C) 1996-2004 by Andrew Tridgell and others
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
              inplace, IPv6, 64-bit system inums, 64-bit internal inums

If it doesn't mention "symlinks", you'll need to compile a new version
(rsync depends on the readlink() function for its symlink support, so
make sure that configure defined HAVE_READLINK).

If the output does mention symlinks, try running rsync without -l set
and make sure that it mentions that it is skipping a non-regular file.
Then, try running it something like -v options and ensure that it
appears in the sender's and receiver's file list.


More information about the rsync mailing list