Networker

Re: [Networker] total gigabytes being backed up

2003-08-14 13:41:53
Subject: Re: [Networker] total gigabytes being backed up
From: "Reed, Ted G II [ITS]" <ted.reed AT MAIL.SPRINT DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Thu, 14 Aug 2003 12:41:46 -0500
I have multiple masters, so here's what I do:

#!/usr/bin/ksh
for i in `cat ../servers.txt`
do
echo $i
mminfo -s $i -ot -r 'totalsize' -q 'savetime >= 05/25/02 12:00, savetime <= 
05/26/02 11:59' | awk '{sum=sum+$0};END{print sum}'
done

*  Where servers.txt is a list of servers, one per line.

You can change the savetime >= and <= to whatever values you want.  The awk/sum 
process will dump one number...the amount of total backups over time-range in 
bytes.  Then convert to whatever you want (KB/MB/GB/TB) by dividing that number 
by 1024 for each movement (i.e.  total/1024 = KB, total/1024/1024 = MB, etc).  
Hope this helps.

--Ted


-----Original Message-----
From: usa ims [mailto:usaims AT YAHOO DOT COM]
Sent: Thursday, August 14, 2003 12:37 PM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: [Networker] total gigabytes being backed up


Is there a command or way to find how much data total
am I backing up per day, or per week?

Thanks in advance

usaims

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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