Networker

Re: [Networker] Finding a tape

2006-08-02 12:37:23
Subject: Re: [Networker] Finding a tape
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 2 Aug 2006 09:36:41 -0700
> mminfo -v -t "$(date '+%m/%d/%y')" -r 'volume'
> 
> but it breaks down if the backup crosses midnight (will only get the final
> volume when the script runs).  If I include the previous day, I might (and
> sometimes do) include volumes from a previous backup.  I will look at
> grabbing the start and finish time from the savegroup report and see if that
> works out.

I earlier showed nsradmin using 'start time'.  That's incorrect.  I
meant to use 'last start'.  That can be fed directly into mminfo.

$ printf "show last start\nprint type:nsr group; name:default\n" | nsradmin -i -
                  last start: "Thu Apr 14 11:59:09 2005";
$ mminfo -av -q 'sscreate>Thu Apr 14 11:59:09 2005'
[...]

Doing that may or may not be easier than parsing the completion output
depending on how you're doing it, but either one is valid.

Admittedly, doing it via the nsradmin query there is a race condition.
You're relying on the group not having been restarted before doing the
nsradmin query.

-- 
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

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>