Forum Discussion

spillo1981's avatar
spillo1981
Level 4
14 years ago

bprestore CLI command

Hi Everybody, I have this problem. I trying to restore some file using bprestore CLI command line The sintax is the follow: bprestore -B -L c:\temp\log1.txt -C source_server -D d...
  • Marianne's avatar
    14 years ago

    First of all see why you're getting status 227 (no entity found).

    If you run bplist, do you see folders/files as expected? e.g.
    bplist -C <source_client>  -s 11/30/2008 -e 12/04/2008 -R 3 /

    You seem to be restoring Unix data to Windows?
    If that's the case, you will probably have to add '-t 1' to bplist and bprestore commands to specify Standard policy type. The default on a Windows master will probably be 13 (MS-Windows-NT) for policy type.

    When bplist gives you the desired output, have a look this TN for bprestore cmd usage on Windows:

    http://www.symantec.com/docs/TECH21196

    My personal experience when assisting a customer some time ago:

    ... cmd restore is NOT as simple as explained in the TechNote:

    The RenameFile needs a <CR> at the end of the line!! If the <CR> is absent, the 'rename' does not work, and the data is restored to the original location.

    This is what my commands/files looked like (we were restoring folders):

    C:\VERITAS\NetBackup\bin\bprestore -B -L C:\Temp\log10.txt -R C:\Temp\restore -C jayaar -D jayaar -t 13  -f C:\temp\restorefile1

    (-C = source client, e.g. FP02; -D = destination client, e.g FP04)

     

    C:\Temp\restore :

    rename 12 /C/marianne/ 13 /C/morejunk1/    (REMEMBER the <CR> at the end of the line!!!)

     

    C:\temp\restorefile1 :

    /C/marianne/j*/
    /C/marianne/J*/