[ale] tar restore help

John Mills Jmills at TGA.com
Fri Jun 25 09:43:02 EDT 1999


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BEBF10.A4FB09D0
Content-Type: text/plain;
	charset="ISO-8859-1"

Bob's ALE Mail wrote:

> IMHO about the only thing GNU screwed up was tar.  By default it strips
the
> leading slash when creating or extracting archives.

I usually do this by:
% cd <branch_to_tar>
% tar cvf <tar_filename> ./*
That works even at '/'. (Usually I would drive the 'tar' with a filelist,
perhaps built using 'find'.)

When you do:
% tar tf <tar_filename>
you should see your filenames starting with './' and you can now unpack them
most anywhere.

Try this for a sample:
% (cd / ; tar cvf - ./tmp ) | tar tf -


  John Mills, Sr. Software Engineer
  TGA Technologies, Inc.
  100 Pinnacle Way, Suite 140
  e-mail: jmills at tga.com
  Norcross, GA 30071-3633
  Phone: 770-421-2100 ext.124 (voice)
         770-449-7740 (FAX)

------_=_NextPart_001_01BEBF10.A4FB09D0
Content-Type: text/html;
	charset="ISO-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
</pre>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2232.0">
<TITLE>RE: [ale] tar restore help</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Bob's ALE Mail wrote:</FONT>
</P>

<P><FONT SIZE=2>> IMHO about the only thing GNU screwed up was tar.  By default it strips the</FONT>
<BR><FONT SIZE=2>> leading slash when creating or extracting archives.</FONT>
</P>

<P><FONT SIZE=2>I usually do this by:</FONT>
<BR><FONT SIZE=2>% cd <branch_to_tar></FONT>
<BR><FONT SIZE=2>% tar cvf <tar_filename> ./*</FONT>
<BR><FONT SIZE=2>That works even at '/'. (Usually I would drive the 'tar' with a filelist, perhaps built using 'find'.)</FONT>
</P>

<P><FONT SIZE=2>When you do:</FONT>
<BR><FONT SIZE=2>% tar tf <tar_filename></FONT>
<BR><FONT SIZE=2>you should see your filenames starting with './' and you can now unpack them most anywhere.</FONT>
</P>

<P><FONT SIZE=2>Try this for a sample:</FONT>
<BR><FONT SIZE=2>% (cd / ; tar cvf - ./tmp ) | tar tf -</FONT>
</P>
<BR>

<P><FONT SIZE=2>  John Mills, Sr. Software Engineer</FONT>
<BR><FONT SIZE=2>  TGA Technologies, Inc.</FONT>
<BR><FONT SIZE=2>  100 Pinnacle Way, Suite 140</FONT>
<BR><FONT SIZE=2>  e-mail: jmills at tga.com</FONT>
<BR><FONT SIZE=2>  Norcross, GA 30071-3633</FONT>
<BR><FONT SIZE=2>  Phone: 770-421-2100 ext.124 (voice)</FONT>
<BR><FONT SIZE=2>         770-449-7740 (FAX)</FONT>
</P>

</BODY>
</HTML>
<pre>
------_=_NextPart_001_01BEBF10.A4FB09D0--






More information about the Ale mailing list