cancel
Showing results for 
Search instead for 
Did you mean: 

Easy way to restore the file which have same name from multiple backup set

AnandhaKannan_D
Level 4

Hi All,

Is there any simplest way to restore the file which have same name from multiple backup set by renaming. 

For example, 12345.txt is the file name and i want to restore the same from 365 days of backup which i have and also i want to rename the file of each day.

Pls suggest any command or script.

3 REPLIES 3

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Command is bprestore but it will require a bit of scripting. bprestore will allow you to specify the start/end date to use for the restore (-s and -e). The renaming of the file is a bit more tricky as its not a simple option on the command line like -renameto "filexxx". It used a rename file, which you need to populate with the name of the original file and the filename to rename to. So your script will need to go and edit this rename file before each restore.

AnandhaKannan_D
Level 4

Can i have any sample script to restore same file from mutiple backup and let me the command to get the media ID for the respective backup.

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Look up bprestore https://www.veritas.com/support/en_US/article.DOC8601