Networker

Re: [Networker] LAst Good Full Script

2004-09-08 11:37:33
Subject: Re: [Networker] LAst Good Full Script
From: Dave Mussulman <mussulma AT CS.UIUC DOT EDU>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 8 Sep 2004 10:37:26 -0500
On Wed, Sep 08, 2004 at 10:13:24AM -0400, Narkinsky, Brian wrote:
> I am looking for a script to give me the volumes containing the last good
> full backup of all my clients.  I need to be able to get the volumes to take
> home with me when the hurricanes hit.  I've been doing it manually with
> MMINFO output  but, want to automate the process.
>
> I know I've seen some references to scripts other members are using and hate
> to reinvent the wheel.
>
> Does anybody have any scripts they can share?

That should be pretty easy to script if you know the mminfo queries.
Just put your mminfo lines into a file.  Mine might look something like
this.

--- CUT HERE ---
#! /bin/sh

mminfo -s server -q group=Full-Server,pool=full,level=full -r volume -t '-3 
months'

--- CUT HERE ---

The hard part is building the query that returns the data you want.
This would give me all the volumes with level full data written to my
full pool for the Full-Server group done within the last three months.

Of course, you could also adjust your pools so that in a scram situation
you knew to grab all of a certain pool and you would be covered.  Then you
wouldn't have to run a report; just grab tapes.

Dave

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