cp/scp

tony.chamberlain at lemko.com tony.chamberlain at lemko.com
Thu Sep 6 10:41:46 UTC 2007



Hi

Lets say I have two directories, /home/p1 and home/p2

There is a file /home/p1/file
and then one /home/p2/lnfile -> /home/p1/file

(in other words I did ln -s /home/p1/file /home/p2/lnfile)

if I cd /home and do a

 tar -zcvf tar.tz p1 p2
or
 scp -r p1 p2 10.0.0.20:

then lnfile is no longer a symbolic link of file, but rather a duplicate.
Is there anyway with tar and scp to preserver the link, symbolic or hard?
You would have to scp/cp/tar enough so that the link would actually point to something.


Tony

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070906/ff21dbea/attachment-0001.htm>


More information about the fedora-list mailing list