In regard to: [Networker] how to find which files are saved in which save...:
>i run nsr backup on solaris 8. it works fine. using nwrecover, i can select
>a file on any client
>and see the different versions that have been backed up. now, i have two
>questions:
>
>1. can i get this "versions" listing also from the command line, in a
>non-interactive way?
> i am looking for a simple command, other than saying
> recover <<EOF
> cd <mydir>
> versions <myfile>
> quit
> EOF
This is harder than part 2, I think. AFAIK, the only way to do this
is to do the steps in part 2, inside a loop (over the savesets for the
client and filesystem "name" in question), and then grep for the file
you're looking for.
>2. is there a way to search the other way round: given a save set and a
>starting directory,
> list all files that are part of this save set
You need to discover the numeric save time (nsavetime) of the saveset(s) in
question using an mminfo query, e.g.
mminfo -q 'client=foo.bar.edu,level=full,savetime>=01/01/2004' \
-r nsavetime,ssid,name
(when you're certain you've got the query right, you can get rid of the
ssid and name from the report)
Once you have the numeric savetime, you use that and the client name with
`nsrinfo' to get the list of files backed up.
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 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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|