Networker

Re: [Networker] id the latest "full"

2002-12-12 11:15:57
Subject: Re: [Networker] id the latest "full"
From: Tim Mooney <mooney AT DOGBERT.CC.NDSU.NODAK DOT EDU>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Thu, 12 Dec 2002 10:02:53 -0600
In regard to: [Networker] id the latest "full", Bob Kryger said (at 10:52am...:

>I am trying to use mminfo to find the most recent full save set for
>particular clients. So far all I can get is all the savesets after or
>between some date(s), but for some clients that might include fulls from
>multiple days (runs).
>
>Before I write a script to do this I was wondering if there were any other
>suggestions.

If you don't know about when the last full was, (so you can't use
restrictive date ranges with mminfo), the easiest way I've found to see
the last full is to do something like:

        mminfo -q 'client=whatever,level=full' -r 'nsavetime,ssid' \
        | sort -n | tail -n 1

Note that this will only give you the very last full that was done on
a particular client -- if the client has multiple volumes you won't see
when the last was for each of them.  You would need a bit more scripting
to get that.

Tim
--
Tim Mooney                              mooney AT dogbert.cc.ndsu.NoDak DOT edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

--
Note: To sign off this list, send a "signoff" 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>