On Sun, Jun 09, 2002 at 05:35:01PM +0800, Leaw, Chern Jian
wrote:> HI,
>
> I have a scenario where a filesystem i.e /fs13/m6.uecommon.1/wmt8/utils is
> residing on a fileserver i.e. fs13. Contents of this filesystem are as
> follows:
>
> # ls -l /fs13/m6.uecommon.1/wmt8/utils
> lrwxrwxrwx ........ include-> /fs12/m6.uecommon.1/utils/include
>
> lrwxrwxrwx ........ tool_utils-> /fs12/m6.uecommon.1/utils/tool_utils
>
> The filesystems being pointed to i.e
> /fs12/m6.uecommon.1/utils/include and /fs12/m6.uecommon.1/utils/tool_utils
> both reside on another fileserver, i.e fs12.
> They(/fs12/m6.uecommon.1/utils/tool_utils and
> /fs12/m6.uecommon.1/utils/include) are NOT mounted on the /fs13 fileserver,
> hence not available on the /fs13 fileserver.
>
> In the /fs12/m6.uecommon.1/utils/include, for example, there are also
> sym-links linking to other FILES, but these files are residing on fs12
> fileserver.
>
> I would like to rsync the /fs13/m6.uecommon.1/wmt8/utils filesystem on the
> fs13 fileserver to another fileserver called sgfs. I've tried the
following
> on sgfs fileserver:
> sgfs fileserver contains the /tmp directory.
>
> rsync -avzol fs13:/fs13/m6.uecommon.1/wmt8/utils /tmp/
>
> and also rsync -avzoL fs13:/fs13/m6.uecommon.1/wmt8/utils /tmp/
>
> but both ways did not get the files copied to sgfs fileserver.
>
> Could someone point out I should rectify this problem?
>
> I've also tried copying filesystems of /fs12/m6.uecommon.1/ from fs12
> fileserver to sgfs fileserver, then recreating the links to it from
> /fs13/m6.uecommon.1/wmt8/utils in sgfs, but that seemed ineffiecient, as I
> had to perform rsync 2X, one for stuffs on /fs12/m6.uecommon.1 and the
other
> for /fs13/m6.uecommon.1/wmt8/utils.
Nit:
-a is equivalent to -rlptgoD so your -avzol is the same as -azv.
It sounds like you want rsync -azv --copy-unsafe-links ...
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw@pegasys.ws
Remember Cernan and Schmitt