hardlinks

Jeremy C. Reed reed at reedmedia.net
Tue May 8 12:40:43 MST 2007


On Tue, 8 May 2007, Darrin Chandler wrote:

> <SNIP>
> > The problem I'm running into is the app that does the tape backup 
> > (commvault) is backing up the hardlinks as files.  (which is correct to do)

I'd suggest that commvault fix their software. I think this is a 
commercial service. If you use commercial software complain to them.

> 3. If there's a pax wizard here, do you know if pax is smart enough to
> deal with this?

Yes. Even tar is. Here is GNU tar on CentOS Linux:


# tar cvf test.tar /bin/gunzip /bin/gzip /bin/zcat
tar: Removing leading `/' from member names
/bin/gunzip
tar: Removing leading `/' from hard link targets
/bin/gzip
/bin/zcat
# tar tvf test.tar 
-rwxr-xr-x root/root     56048 2006-09-20 03:12:30 bin/gunzip
hrwxr-xr-x root/root         0 2006-09-20 03:12:30 bin/gzip link to 
bin/gunzip
hrwxr-xr-x root/root         0 2006-09-20 03:12:30 bin/zcat link to 
bin/gunzip

And on NetBSD (using pax-as-tar):

$ tar cvf test.tar /bin/test /bin/[                                                                 
tar: Removing leading / from absolute path names in the archive
bin/test
bin/[
tar: ustar vol 1, 2 files, 0 bytes read, 20480 bytes written in 1 secs 
(20480 bytes/sec)

$ tar tvf test.tar 
-r-xr-xr-x  1 root     wheel       9855 Aug  4  2006 bin/test
-r-xr-xr-x  2 root     wheel          0 Aug  4  2006 bin/[ == bin/test
tar: ustar vol 1, 2 files, 20480 bytes read, 0 bytes written in 1 secs 
(20480 bytes/sec)

  Jeremy C. Reed


More information about the PLUG-discuss mailing list