Networker

Re: [Networker] mminfo - Total backup size for Master Server

2006-02-07 17:29:13
Subject: Re: [Networker] mminfo - Total backup size for Master Server
From: Davina Treiber <DavinaTreiber AT PEEVRO.CO DOT UK>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 7 Feb 2006 22:27:08 +0000
Darren Dunham wrote:
This has probably been answered 100 times, but could someone give me the
mminfo command to provide backup size for a given master server?
Total?


For a day?  Week?  Forever?

Do you care about everything on tape, or just the amount that is valid
for a restore?


I did search the archives, and found a lot of entries, but seems to go
into scripts, peoples reporting tool, etc. etc.


That's because the mminfo doesn't really have much facility for
summarizing data, just displaying it.  You need to add things up
externally.  Fortunately for something like this, the "script" you use
can be pretty simple.

For total backups (including aborted/incomplete and expired images)...

mminfo -av -r 'totalsize' | perl -lne '$sum+=$_; END {print "$sum bytes";}'

Stick a -t timespec on mminfo to limit the information to be since that
point.  You can use an absolute time like '05/01', or relative like
'last week'.


Actually, mminfo -Xa is a useful summary.

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
wit 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>