You can add the "-L" option. Unfortunately, that will follow all symlinks
on the source too, not just that one.
- Dave Dykstra
On Wed, Jan 17, 2001 at 03:39:29PM -0500, Scott Gribben wrote:
> We have been running rsync for a while and it works great! But, we just ran
> into a situation I need some quick help on:
>
> Solaris 2.6 to Solaris 2.6, destination running in daemon mode.
>
> We ran out of space on one of the file systems, so we made a soft link (ln
> -s) to a different file system to make use of the extra space over there.
>
> We ran into a problem with rsync overwrote the link with the real directory
> and filled up the file system again!
>
> Originally:
> /opt/foo/bar/stuff
>
> syncing from foo level to destination
>
> What we changed to:
> Bar is a sym link ( cd /opt/foo; ln -s ./bar /newFileSystem/bar after all
> the appropriate cpio'ing was done)
>
> /opt/foo/bar is /newFileSystem/bar. When rsync was done (file system full)
> the sym link was gone and overwritten like a regular directory.
>
> Now:
> Back to original
>
> We are running:
>
> Rsync -rtv -stats -exclude-from=foo /opt/foo/* user@machine::module
> <mailto:user@machine::module>
>
> The docs tell me that it will preserve links on the source, but I need it to
> follow the links on the destination.
>
> I'm in a rush as this has some production issues associated, so any help as
> soon as possible would be great.
>
> THANKS in advance!
> Scott