Forum Discussion

Varma_Chiluvuri's avatar
13 years ago

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...
  • mph999's avatar
    13 years ago

    ** 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