1759551 Members
2857 Online
108884 Solutions
New Discussion юеВ

Append in gzip or tar

 
Marcelo De Florio_1
Frequent Advisor

Append in gzip or tar

How can i append files to gz file or tar file ?

i need a append file1, file2, file3 ...

regards

MDF
Marcelo De Florio
7 REPLIES 7
Bill McNAMARA_1
Honored Contributor

Re: Append in gzip or tar

Use tar -a for tar,
regarding gzip mmmm I dunno

Later,
Bill
It works for me (tm)
Marcelo De Florio_1
Frequent Advisor

Re: Append in gzip or tar

thanks, but -a option in tar HP-UX 11.00
doesn't work.
Marcelo De Florio
Robin Wakefield
Honored Contributor

Re: Append in gzip or tar

With tar, it's the -r option

Robin.
Sachin Patel
Honored Contributor

Re: Append in gzip or tar

tar -r (This option can not be used if archive is tape)

you can create file1.gzip then include this zipfile with new files to be zip.

Sachin
Is photography a hobby or another way to spend $
John Palmer
Honored Contributor

Re: Append in gzip or tar

Use the r flag to append files to an existing tar file.

You can't append to a gz file but if it's a compressed tar archive then you could:-
- gunzip the file
- tar r to add files
- gzip it again.

Regards,
John
Marcelo De Florio_1
Frequent Advisor

Re: Append in gzip or tar

To use tar r i need a change block size for target file, how can i to change the block size ?
Marcelo De Florio
Sachin Patel
Honored Contributor

Re: Append in gzip or tar

option b is for block factor. default is 20

Sachin
Is photography a hobby or another way to spend $