rsync and symlinks

Jignesh Shah jignesh.shah1980 at gmail.com
Tue Sep 1 10:47:52 MDT 2009


Thanks Carlos.

... rsync copy symlinks as  symlinks
What about the contents pointed by simlinks?

Could you please also elaborate on "Only if it's inside source."

Thanks,
Jignesh



On Tue, Sep 1, 2009 at 8:25 PM, Carlos Carvalho <carlos at fisica.ufpr.br>wrote:

> Jignesh Shah (jignesh.shah1980 at gmail.com) wrote on 1 September 2009 11:30:
>  >Hi, I have one question regarding handling of symlinks in rsync. If I
> have
>  >/source directory in which I have 100s of sub directories of directories
> and
>  >each one has symlink to some directories out side the /source directory
>  >hierarchy. Does rsync follows all those symlinks and syncs the data if I
>  >specifies below rsync command?
>  >
>  >rsync -avz /source/ remote.ky:/source/
>
> The -a option in this command will make rsync copy symlinks as
> symlinks, to faithfully reproduce source on remote.ky.
>
>  >source
>  >   |
>  >   | - source1 --> /projects/win
>  >   | - source2 --> /projects/unix
>  >   | - source3 --> /scripts/win
>  >   | ....
>  >
>  >Does rsync command syncs /project contents as well?
>
> Only if it's inside source.
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html<http://www.catb.org/%7Eesr/faqs/smart-questions.html>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20090901/f98aa791/attachment.html>


More information about the rsync mailing list