[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] tar-1.13.25: unable to restore hardlink
From: |
Joerg Schilling |
Subject: |
Re: [Bug-tar] tar-1.13.25: unable to restore hardlink |
Date: |
Wed, 06 Oct 2004 18:58:24 +0200 |
User-agent: |
nail 11.2 8/15/04 |
Sergey Poznyakoff <address@hidden> wrote:
> Ulrich Windl <address@hidden> wrote:
>
> > When restoring the archive I did not use -P, because I wanted to restore
> > the
> > former root tree int "/mnt", not "/".
>
> You probably need to use --strip-path option in this case (you
> will need tar 1.14 for that). See
> http://www.gnu.org/software/tar/manual/html_node/tar_43.html#SEC43
If GNU tar by default skips leading '/' characters it should do the same
with hard link names. This is what star does since 1995.
Note that is is most likely wrong to do the same with symlinks.
Jörg
--
EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
address@hidden (uni) If you don't have iso-8859-1
address@hidden (work) chars I am J"org Schilling
URL: http://www.fokus.fraunhofer.de/usr/schilling
ftp://ftp.berlios.de/pub/schily