How can I translate symbolic links from Unix onto Windows ?

How can I translate symbolic links from Unix onto Windows ?

Sunday 07 March 2004 2:02:03 pm - 3 replies

Author Message

Derick Rethans

Monday 08 March 2004 12:48:48 am

AFAIK there is no way for symlinks on Windows, but the -h option of tar will make copies of the files instead of putting the symlinks in the archive. That should do the trick.

Nick Woods

Tuesday 09 March 2004 12:42:59 am

Thanks Derick, but I tried this but with no luck :-
tar hcf 2004_03_08_01.v3.tar /home/virtual/site6/fst/home/webmaster/mainwebsite_html/var

i then dumped the contents to a file
tar tvf 2004_03_08_01.v3.tar > 2004_03_08_01.v2.tar.gz.txt

had a look for a file that I know is causing me trouble
grep woodsnick.jpg 2004_03_08_01.v2.tar.gz.txt

and it still says its a link not a file
-rw-rw-rw- apache/apache 0 2004-03-08 13:42:29 home/virtual/site6/fst/home/webmaster/mainwebsite_html/var/plain/storage/images/club_members/woods_nick/196-4-eng-GB/woodsnick.jpg <b>link to</b> /home/virtual/site6/fst/home/webmaster/mainwebsite_html/var/plain/storage/images/club_members/nick_woods/196-2-eng-GB/nick_woods.jpg

The strange thing is that if i do 'ls -l' in the original directory the files that tar says are linked (ie home/virtual/site6/fst/home/webmaster/mainwebsite_html/var/plain/storage/images/club_members/woods_nick/196-4-eng-GB/woodsnick.jpg )they just show up as normal files (no 'l' or 'linked to') , and if I download one with smartftp (windows prog) it downloads the original file, yet tar stores them as files and winzip just ignores them

do you have any ideas what might be causing this ?

Igor Drozdov

Friday 12 March 2004 8:30:32 am

There are some utilities to make symbolic links (junctions) under Windows. I personally like excellent Junction program from http://www.sysinternals.com/ntw2k/source/misc.shtml#junction

There are other utilities to check out.

http://www.hlm.inc.ru/ is one
http://www.rekenwonder.com/linkmagic.htm - is another.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.