Re: hardlinks

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: Main PLUG discussion list
Subject: Re: hardlinks
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
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss