Forum Discussion

Varma_Chiluvuri's avatar
13 years ago
Solved

bprestore command for restoring archive files

I need to restore 2 archive files on client from master server using bprestore command.

For Example, consider the following

Client Server Name: Client1

Master Server NAme : Master1

Files : x1, x2.

Can someone help me to restore x1 and x2 files on client1 from the master server.

  • ** Credit to Marianne for pointing out I missed the -A ... **

    bprestore -A -C <client name> </path/filename>

    Example

     

    root@womble testdata $ ls
    file2         file3         file4         incre_backup  /testdata2
     
     
    root@womble testdata $ bprestore -C womble /netbackup/testdata/file1
    root@womble testdata $ ls
    file1         file2         file3         file4         incre_backup  testdata2

    This will restore the last version of these files backed up.  If you want one from an earlier backup add ...

     

     -s date, -e date
              Specifies the start and the end date range for the
              listing. The bprestore command restores only files from
              backups or the archives that occurred within the
              specified start and end date range.
     
              -s specifies a start date and time for the restore
              window.  bprestore restores files only from the backups
              or the archives that occurred at or after the specified
              date and time.
     
     The valid range of dates is from 01/01/1970 00:00:00 to
              01/19/2038 03:14:07. The default start date is
              01/01/1970 00:00:00

    so -s 06/25/2012 00:00:00 -e 06/25/2012 23:59:59 would restore from a backup taken between these two times

    martin

  • In addition to Martin's excellent post, add -A to restore from Archived backup. The default is -B - regular backups.

    You will need to specify exact path to x1, x2.
    For multiple files, best to add them in a file and then specify this filename with -f <filename>.
    We don't know your OS - if Windows, important to add <CR> at the end of last line in the file.

    Full bprestore command usage, see NetBackup Commands Reference Guide  http://www.symantec.com/docs/DOC3684

     

  • Opps, missed that bit - thanks Marianne ....

     

         -A | -B | -rb
              Specifies if data is to be restored from archives (-A),
              backups (-B), or snapshot rollbacks (-rb). The default
              is -B.
     
    Have editted forst post to make it correct - credit to Marianne for that bit ...
     
    M
  • ** Credit to Marianne for pointing out I missed the -A ... **

    bprestore -A -C <client name> </path/filename>

    Example

     

    root@womble testdata $ ls
    file2         file3         file4         incre_backup  /testdata2
     
     
    root@womble testdata $ bprestore -C womble /netbackup/testdata/file1
    root@womble testdata $ ls
    file1         file2         file3         file4         incre_backup  testdata2

    This will restore the last version of these files backed up.  If you want one from an earlier backup add ...

     

     -s date, -e date
              Specifies the start and the end date range for the
              listing. The bprestore command restores only files from
              backups or the archives that occurred within the
              specified start and end date range.
     
              -s specifies a start date and time for the restore
              window.  bprestore restores files only from the backups
              or the archives that occurred at or after the specified
              date and time.
     
     The valid range of dates is from 01/01/1970 00:00:00 to
              01/19/2038 03:14:07. The default start date is
              01/01/1970 00:00:00

    so -s 06/25/2012 00:00:00 -e 06/25/2012 23:59:59 would restore from a backup taken between these two times

    martin