How do you add files to an existing compressed tar file?

Erik Bixby erik.bixby at gmail.com
Fri May 5 14:46:29 MST 2006


While I was waiting for a response, I figured I'd see if leaving off
the compression helped.  That still seems to munge the files...  I'm
preparing to go with plan "b;" just use lots of individual files.

On 5/5/06, Darrin Chandler <dwchandler at stilyagin.com> wrote:
> On Fri, May 05, 2006 at 02:20:29PM -0700, Erik Bixby wrote:
> > I can successfully create a tar file with something akin to
> >
> > tar -czvf /path/to/archive.tgz /path/to/file/to/backup
> >
> > Once the archive.tgz file is created, how does one add another file to
> > it?  Everything I've read gives me the impression that
> >
> > tar -rzvf /path/to/archive.tgz /path/to/other/file/to/backup
> >
> > should work.  However, that's blowing my archive.tgz file up.  Any ideas?
>
> I don't have time to reboot into Linux right now, but on OpenBSD it
> complains bitterly that it can't gzip while appending, and refuses to do
> anything.
>
> Leaving off the "z" option and working with straight .tar files works
> great.
>
> If that's the case for the tar you're using then you'll have to
> decompress, append, then recompress.
>
> --
> Darrin Chandler            |  Phoenix BSD Users Group
> dwchandler at stilyagin.com   |  http://bsd.phoenix.az.us/
> http://www.stilyagin.com/  |
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>


More information about the PLUG-discuss mailing list