Tuesday, May 24, 2011

Using bprestore command to restore multiple individual files at a different location


Using below command you can restore multiple files at different locations at any location. this helps in case you have a huge number of files to restore in different location. GUI will take too long. This is an easy and faster way to do it.

Command :

 /usr/openv/Netbackup/bin/bprestore
Example :

./bprestore -B -t 0 –C gnnbkp81 –D bkp81_test -s 12/14/2010 00:00:00 -e 12/16/2010 00:00:00 -f /test/restore_this -R /test/file_change

Important Parameters :
-B : menas that this is a backup and not archive.
-t 0 means that this is a 0(Standard) type restore.

-C clientname
-D destination clientname
-s start date in mm/dd/yyyy 00:00:00 format
-e end date in mm/dd/yyyy 00:00:00 format
-f (This should be the path of the file which contains the complete path of the files to be restored)

Example :
/test/data/file0
/test/data/file1
/test/data/file2
-R (This is the file that the new path where data is to restored. This should contain the complete source as well as the destination path). File should be saved in below format.

Example :
Change /test/data/file0 to /test/restore/file0
change /test/data/file1 to /test/restore/file1
change /test/data/file2 to /test/restore/file2



Cheers
Gorav


Gauravsethi82@gmail.com

1 comment:

  1. Nice tech...helped one of my customer today....thanks very much.

    regards,
    Kapil

    ReplyDelete