help-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-tar] Problem with tar automatically creating hard links


From: Paul Eggert
Subject: Re: [Help-tar] Problem with tar automatically creating hard links
Date: Thu, 28 Mar 2013 15:47:36 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

Generally speaking, you can't retrieve a hard link from a
tar file, without the original being there.  This is true for
traditional tar, e.g., on Solaris 10:

$ touch a
$ ln a b
$ tar cvf a.tar ./a a
a ./a 0K
a a link to ./a
$ tar tvf a.tar
tar: blocksize = 4
-rw-rw-r-- 5823/30       0 Mar 28 15:44 2013 ./a
-rw-rw-r-- 5823/30       0 Mar 28 15:44 2013 a linked to ./a
$ rm a
$ tar xvf a.tar a
tar: blocksize = 4
tar: a: cannot link

I expect that your friend will get similar results with
older GNU tar.  New GNU tar is smarter about not
including duplicates of files, which explains why you're
seeing the issue and your friend is now.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]