Ori Idan <[EMAIL PROTECTED]> writes:

> I have a source tree which some of the files are actually symbolic links
> to other files in the same tree.
>
> I compress the tree using tar cjf file.tar.bz2 dir
>
> When I extract the files to the same machine everything works fine.
>
> When I  extract the files to another machine with same directory
> strucuture (the directories before the source tree) everything works
> fine but extracting it on another machine with different path it seems
> the symbolic links are not created.
>
> For example:
>
> On my machine the source tree is at: /home/ori/stree
>
> On the other machine the source tree is at /home/user1/stree
>
> If on the other machine I would extract it to /home/ori, everything
> works fine.
>
> It seems as if tar works with absolute path names for the symbolic links.
>
> Anyone knows how to tell it to work with relational names?

What are the links? Do the link targets - as saved by tar - contain
the full path (/home/ori/...)? If they do that would explain your problem.

By default, tar will recreate symlinks, unless you use --dereference
(which is a good idea if you intend to recreate on a filesystem that
does not support symlinks).

-- 
Oleg Goldshmidt | [EMAIL PROTECTED] | http://www.goldshmidt.org

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to