Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listing all folders backed up within a saveset

Status
Not open for further replies.

bombcan

Technical User
Jun 8, 2004
49
0
0
CA
Anyone can help with this. Listing all the files/folders that were backed up in the saveset.
 
This is a little bit more complicated than you may expect as NW does not store the SSID in the client file index and of course you can only do this for browseable save sets.

1. Run mminfo to find the savetime. The easiest way to do this is via the universal UNIX time format (nsavetime)
mminfo -q "your_query" -r "ssid, nsavetime"


2. Query the file index as follows
Windows: nsrinfo clientname | findstr nsavetime_string
Unix: nsrinfo clientname | grep nsavetime_string

 
mminfo -q "your_query" -r "ssid, nsavetime"
what should i put to replace your_query and nsavetime? Thanks.
 
Sorry, but i can not tell you what you are searching for.

your_query = contains your query string
Please lookup the mminfo manpages for examples

nsavetime = is actually a value that is reported to you by mminfo (-r)

 
my "lsnsr" script, take one arg, an ssid

[tt]
#!/bin/ksh

LINE=`mminfo -r nsavetime,client,name -q ssid=${1} | tail +2 | head -1`

NSAVETIME=`echo "${LINE}" | awk '{print $1}'`
CLIENT=`echo "${LINE}" | awk '{print $2}'`
SSNAME=`echo "${LINE}" | awk '{print $3}' | cut -b 0-5`

NFLAG=""
case "${SSNAME}" in
"NOTES")
NFLAG="-n notes"
;;
"MSSQL")
NFLAG="-n mssql"
;;
*)
NFLAG=""
;;
esac

nsrinfo -t ${NSAVETIME} ${NFLAG} ${CLIENT}
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top