Forums / Install & configuration / How can I translate symbolic links from Unix onto Windows ?

How can I translate symbolic links from Unix onto Windows ?

Author Message

Nick Woods

Sunday 07 March 2004 2:02:03 pm

I need to know how to convert symbolic links in a Unix tar file so that they can be used on Windows XP

I'm taken a copy of my live website (which is on Unix) by dumping the mysql database and tar'ing up the var directory, after copying to my PC and installing it the site works correctly apart from a problem with images.

I traced this to the fact that ezp uses symbolic links to refer back to an image on a unix box when an article has changed. In other words it creates a new directory for the article but in that directory it creates a symbolic link pointing back to the original

So, what I need is a way of either converting the links to 'proper' files on the Unix box or converting them to windows shortcuts on the XP box.

Neither winzip or powerchiver seem able to do this, so can anyone suggest a solution ?

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.

eZ debug

Timing: Jan 18 2025 16:26:03
Script start
Timing: Jan 18 2025 16:26:03
Module start 'content'
Timing: Jan 18 2025 16:26:04
Module end 'content'
Timing: Jan 18 2025 16:26:04
Script end

Main resources:

Total runtime0.7559 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0125 587.9922180.7891
Module start 'content' 0.01250.5975 768.7813562.7656
Module end 'content' 0.61010.1458 1,331.5469337.3594
Script end 0.7558  1,668.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5545210.0002
Check MTime0.00150.1960210.0001
Mysql Total
Database connection0.00550.722310.0055
Mysqli_queries0.674089.16341990.0034
Looping result0.00240.32371970.0000
Template Total0.717995.020.3589
Template load0.00230.305520.0012
Template processing0.715594.659120.3578
Template load and register function0.00010.018410.0001
states
state_id_array0.00090.117210.0009
state_identifier_array0.00160.208420.0008
Override
Cache load0.00190.2572270.0001
Sytem overhead
Fetch class attribute can translate value0.00200.265440.0005
Fetch class attribute name0.00140.190650.0003
XML
Image XML parsing0.00130.166740.0003
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00260.3387270.0001
String conversion0.00000.001130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs