Re: Can tar add files to .tar.gz archives ?



javibarroso@xxxxxxxxx wrote:

> The command
> tar rzf archive.tar.gz file
> returns "abort"
>
> If I don't want to ungzip the archive, I can't add files to it, isn't?
>
> Thanks !

My tar attempt is more explicit about this:

tar -rvzf ar.tgz d
tar: Cannot update compressed archives
tar: Error is not recoverable: exiting now

Neither can you compress a non gz'ed
tar archive file while appending

tar -rvzf ar.tar d
tar: Cannot update compressed archives
tar: Error is not recoverable: exiting now


:(

Now let's hope somebody posts a nice
one-liner.

--
Etienne Marais
Cosmic Link
South Africa

.



Relevant Pages