Networker

Re: [Networker] Is there a way to read the indexes?

2009-07-14 15:48:25
Subject: Re: [Networker] Is there a way to read the indexes?
From: Tim Mooney <Tim.Mooney AT NDSU DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 14 Jul 2009 14:43:50 -0500
In regard to: [Networker] Is there a way to read the indexes?, Louis Munro...:

Hello all,
I'm running networker 7.4 on solaris 10.

Is there a way to read the information in the index files?
More specifically, I need to know how many files of a certain
extension have been backed in the last year for a saveset.

Looking for mp3s?  :-)

Assuming you have client indexes going back a year, this type of thing is
easy.  Look at the nsrinfo command and search the archives for this list
for information on best to use the command.

You basically want to find the exact numeric savetime (nsavetime) for
the savesets you want to search, using something like

mminfo -ot -q 'client=your.client.name,name=/home' -r nsavetime > nsavetimes

Then use nsrinfo to report the contents of each one of those savesets:

for d in `cat nsavetimes`
do
        nsrinfo -t $d your.client.name | egrep '\.mp3'
done


Of course the commands could be combined, but I find it generally takes me
a little fiddling with the mminfo query before I have what I want to feed
to nsrinfo in the loop.

This all requires that your client indexes are still populated though.

Tim
--
Tim Mooney                                             Tim.Mooney AT ndsu DOT 
edu
Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
Room 242-J6, IACC Building                             701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

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