UNSOLVED

rlchua

updated

19 years ago

R

rlchua

12 Posts

0

890

November 11th, 2007 23:00

Searching for a backed-up file in Networker

Hi,

How do I search for a file which has been backed up in Networker using only a file name? We don't know when the file was actually backed-up to tape and which specific directory it was as the directory names on this volume changes according to date. We do know that it was backed up from a specific disk and client.

Is there a command line which I can use to be able to search for this file? (Our browse and retention policy for this volume is 10 years).

Thanks in advance for your help!
  • rlchua

    12 Posts

    492

    0

    Posted November 12th, 2007 01:00

    You can use nsrinfo to look for all the files from a
    specific client.


    Daniel, do you mean that we can specify a specific file for a specific client? I checked the documentation for nsrinfo, and it does have the -N option, but when I tried to use it to search for a file, it does not seem to work. I did this test here:

    $ mminfo -a -s sgs1cb01 -q "pool=PROMIS" -r "barcode,nsavetime" -ot
    ...
    EB0780 1193976135
    EB0780 1193976136
    EB0780 1194724898
    ...
    $ mminfo -a -s sgs1cb01 -q "barcode=EB0780" -r "barcode,name(40),nsavetime" -ot
    barcode name save time
    EB0780 DISK$TLOG_S1:[PROMS1]*.*;* 1193976135
    EB0780 DISK$PROARCH:[000000]*.*;* 1193976136
    ...
    $ nsrinfo -s sgs1cb01 -t 1193976136 s1p02
    scanning client `s1p02' for savetime 1193976136(Fri Nov 2 12:02:16 2007) from t
    he backup namespace on server sgs1cb01
    DISK$PROARCH:[LOTLIST]ARCHIVELOTLIST.JOU;1
    DISK$PROARCH:[LOTLIST]ARCHIVELOTLIST.TXT;2
    DISK$PROARCH:[LOTLIST]ARCHIVELOTLIST.TXT_OLD1;1
    DISK$PROARCH:[LOTLIST]
    DISK$PROARCH:[PROM_ARC_P51.CD.COMP_03JUN06]C103W0095.1;1
    DISK$PROARCH:[PROM_ARC_P51.CD.COMP_03JUN06]C103W0103.1;1
    ...

    However, whenever I tried to just search for a specific file:

    $ nsrinfo -s sgs1cb01 "-N" C103W0103.1;1 s1p02
    scanning client `s1p02' for all savetimes from the backup namespace on server sgs1cb01
    0 objects found
    $

    By the way, our client, s1p02, is an OpenVMS system, and our Networker server is on Solaris 9.
  • dpinink_silva

    2 Intern

    •

    724 Posts

    492

    0

    Posted November 12th, 2007 01:00

    No, but you can always use grep :)

    $ nsrinfo -s sgs1cb01 s1p02 | grep

    This will give you the path and the savetime of the files.
  • dpinink_silva

    2 Intern

    •

    724 Posts

    492

    0

    Posted November 12th, 2007 01:00

    You can use nsrinfo to look for all the files from a specific client.
  • dpinink_silva

    2 Intern

    •

    724 Posts

    492

    0

    Posted November 12th, 2007 02:00

    I know that it can take hours (days?) to finish, but as you said that you don't know the time of the backup, it's the best thing you can do.

    But if you have any idea about the backup time (the week, the month etc), you could use mminfo to get the nsavetime from all of them, and then use nsrinfo on each savetime. This still can take a long time, but not as long as searching 10 years of backup :)
  • rlchua

    12 Posts

    492

    0

    Posted November 12th, 2007 02:00

    No, but you can always use grep :)

    $ nsrinfo -s sgs1cb01 s1p02 | grep

    This will give you the path and the savetime of the
    files.


    Well, this might be true, but with a lot of files already backed-up (10 years retention), this will be quite a time-consuming and resource intensive activity :)

    I was hoping for a much "faster" way of doing it.