I'm not certain what result you want, but rsync will do your bidding.  --copy-links 
makes it grab the file the link points to, instead of creating the link, 
--copy-unsafe-links does the same, including for links that point OUTSIDE of the 
directory tree 
you were looking at.  --safe-links prevents the creation of these broken links you're 
getting, in that it pretends that links that point outside of your directory tree 
don't exist... they simply don't appear in the mirror.  Without knowing more about 
your specific setup, I would guess that your broken links appear because they are 
absolute-path links (start with /), and you're rsyncing into a different absolute 
path.  Example:  source dir = /site, destination dir=/pub/site.  symlink in /site/html 
named images points to /site/images.  you rsync this over to /pub/site, and it looks 
for /site/images, which doesn't exist.  If the tree needs to be portable, you should 
use relative links.  /site/html would point to ../images, then it doesn't matter 
where it lives, as long as the rest of the tree comes along with it.

I hope one of these scenarios solves your problem.


Tim Conway
[EMAIL PROTECTED]
303.682.4900
Philips Semiconductor - Colorado TC
1880 Industrial Circle
Suite D
Longmont, CO 80501





[EMAIL PROTECTED]@[EMAIL PROTECTED] on 12/13/2000 08:33:06 AM
Please respond to [EMAIL PROTECTED]@SMTP 
Sent by:        [EMAIL PROTECTED]
To:     [EMAIL PROTECTED]@SMTP
cc:      
Subject:        symbolic links
Classification: 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi all

I tried to do a mirror with rsync, but the structure of directory that
I want to download has some symbolic links,which they are maintained.
The files into these directories aren't downloaded.
Is there another way to download these files or directories ?


Best regards,

Epi

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQA/AwUBOjeHbBrGIiXj/HKVEQLivQCfeaIr+/mjuPiPkW97PFBobqQWJIQAoJ2V
NgeXhe+Hz/zol7f3JHhr7yyz
=AV9K
-----END PGP SIGNATURE-----






Reply via email to