[CentOS] gtar compression achieved

Tue Feb 7 12:29:05 UTC 2012
Alexandru Chiscan <lec at chiscan.dnsalias.org>

On 02/01/2012 04:18 PM, Alan McKay wrote:
> Hey folks,
>
> I looked at the man page and don't see any way to do this - maybe it is a
> function of the compression program used I dunno.
>
> Is there any way to get gtar to report on the compression it achieved?
>
> I can't just check file sizes because I'm writing data to tape.
>
> The basic problem is that I know how much data is there to begin with but I
> don't know how much room it took up on the tape so I have no idea how much
> room is left on the tape.
You could ask tar to automatically request tape change when reaching end 
of tape:

-M, --multi-volume
               create/list/extract multi-volume archive

Lec