[prev in list] [next in list] [prev in thread] [next in thread] 

List:       novalug
Subject:    Re: [ma-linux] tar file name too long
From:       Paul Tremblay <phthenry () earthlink ! net>
Date:       2003-07-11 15:07:20
[Download RAW message or body]

On Fri, Jul 11, 2003 at 09:33:02AM -0400, Ross Patterson wrote:
> 
> On Thursday 10 July 2003 09:58 pm, Paul Tremblay wrote:
> > Right. I can't use GNU tar on the Mac OS. 
> 
> When you posted a few days ago, I did a Google search and the only "hfstar" 
> program I could find was a modified version of GNU tar from MetaObjects 
> (http://www.metaobject.com/downloads/macos-x/).  It's based on GNU tar 
> 1.13.19, and has changes to allow for dumping resource forks, etc.  If that's 
> the program you're using, you might check if there is a newer version 
> available from someplace - the current GNU tar level on Linux systems is 
> 1.13.25.

Yes, this could be. But...

> 
> > This limitation is kind of a bummer. I spent a lot of time writing a
> >  script that did all sorts of things. Tar is kind of at the
> > heart of the script. 
> 
> Michael Stone suggested you try "pax", the POSIX alternative to tar.  There is 
> apparently a Mac version called "hfspax" at 
> http://homepage.mac.com/howardoakley/  - the MetaObjects page had a reference 
> to it.

Yes, I found the same thing last night. You can use hfspax to make a
cpio archive, and cpio archives have no path-size limitation. 

I could also make a ustar archive, which has a pretty hefty size
limitation 250 characters. 

The only minor problem is that I can't use pax to read from a list 
containing file names, as I can with tar:

tar -T file_of_names -f archive.tar

pax -w -f archive.pax ???

I have come up with this very satisfactory, but not pefect solution:

cat file_of_names | pax -w -x cpio -f archive.pax


The more I can keep with the original syntax, the less lines I will
have to change.

Thanks

Paul



-- 

************************
*Paul Tremblay         *
*phthenry@earthlink.net*
************************
_______________________________________________
ma-linux mailing list
ma-linux@tux.org
http://www.tux.org/mailman/listinfo/ma-linux
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic