In regard to: [Networker] Recovering a file when you don't know the path?,...:
>Is there a way to determine what path a given file or directory may have
>existed under?
>
>I had a user who wanted to recover a directory (I'll call it
>/home/user_name/mydir/foo), but he could not remember for exactly where
>in his home directory the directory lived.
This has been discussed in the last couple months, and is a
borderline-FAQ.
If you don't know what the *path* was to the file but you know its name
(or part of its name) *and* you know when it existed, you need to use
`nsrinfo' with one or more savesets, to dump a list of all files backed up
in the saveset(s) and then search (e.g. grep) the output for the file.
That will give you the path.
Let's say you're looking for something under /home on the client
foo.bar.edu. You could run:
mminfo -q 'name=/home,client=foo.bar.edu' -r ssid,nsavetime,level
and then take the numeric savetime from one of the fulls and do
nsrinfo -t <the numeric savetime here> foo.bar.edu > /tmp/full-list
and then grep through that. If it's more transient (i.e. it wasn't on
the last full, it was created after that and exists in one of your lesser
backups) you'll need to search other backups -- knowing when it might have
changed will help narrow down how many savesets you need to search.
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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|