Networker

Re: [Networker] How to know the MB used by a backup?

2007-07-19 09:27:26
Subject: Re: [Networker] How to know the MB used by a backup?
From: "Faidherbe, Thierry" <Thierry.Faidherbe AT HP DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 19 Jul 2007 13:18:17 -0000
Hi Manel,

Well, in your mminfo, you can add in report section the
totalsize field. It will report the size of the backup.

If your mminfo cmd is well structured and not having SSID
reporter twice (eg -r ssid,volume where a SSID can be
on different volumes so line reported twice), then
pipe it to an AWK or bc to sum it.

You can also give mminfo -X a look.

something like ....

mminfo -s server -q "savetime> 2 days ago,!incomplete" \
 -r ssid,totalsize  | awk '    
        BEGIN { TOTAL=0; }
        TOTAL=TOTAL+$1;
        END { printf("%-10.0f MB,\n" , TOTAL/(1024*1024); }
'


Th 



Kind regards - Bien cordialement - Vriendelijke groeten,

Thierry FAIDHERBE

HP Services - Storage Division
Tru64 Unix and Legato Enterprise Backup Solutions Consultant
                                  
 *********       *********   HEWLETT - PACKARD
 *******    h      *******   -  1 Rue de l'aeronef/Luchtschipstraat
 ******    h        ******      1140 Bruxelles/Brussel/Brussels
 *****    hhhh  pppp *****   -  102 Blv de la Woluwe/Woluwedal
 *****   h  h  p  p  *****      1200 Bruxelles/Brussel/Brussels
 *****  h  h  pppp   *****   -> HP moves as from 20 August 2007
 ******      p      ******      Hermeslaan 1a - B-1831 Diegem
 *******    p      *******      BELGIUM                          
 *********       *********      
                                      Phone :    +32 (0)2  / 729.85.42
      I  N  V  E  N  T          Mobile :   +32 (0)498/  94.60.85  
                                Fax :      +32 (0)2  / 729.88.30
Enterprise number 0402.220.594  Email/MSN : thierry.faidherbe(at)hp.com

     RPM/RPR Brussels           Internet  : http://www.hp.com/

-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Manel Rodero
Sent: jeudi 19 juillet 2007 14:54
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] How to know the MB used by a backup?

Hello,

I would like to know if there is an easy manner of getting the MB/GB 
used by a backup? I suppose the right command is 'mminfo' but If not 
found a combination for obtaining only the size of a concrete backup.

I can use mminfo to get tapes that were written in a day, if such tapes 
are full of savesets of the same day, then I can count the total 
capacity of the tape. If in this tape there are backups from different 
days, then I must only count the amount of my day.

Any idea, fast script for doing this?

Thank you very much.

-- 

o o o  Manel Rodero                   | LCFIB - UPC
o o o  Systems Manager                | Campus Nord - Modul B6
o o o  Laboratori de Calcul           | Jordi Girona, 1-3
U P C  Facultat Informatica Barcelona | 08034 Barcelona (Spain)
                                       |
        manel AT fib.upc DOT edu              | Tel: +00 34 93 401 6940
        http://www.fib.upc.edu/~manel  | Fax: +00 34 93 401 7040

To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the body of the email. Please write to
networker-request AT listserv.temple DOT edu if you have any problems with this
list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>