Here is the Unix version ... Windows should be the same.
#Useage - restore.sh <filelist> <startdate>
#Filelist - list of files to restore
#Startdate - earliest date of backedup files
#Renamefile - File containg altpath eg. change /netbackup/testdata to /tmp/res<CR> (<CR> - Carriage return)
#Define variables
RENAMEFILE=/tmp/res/alt_locate
LOGFILE=/tmp/res/restore_log.txt
FILELIST=/tmp/res/filelist
MASTER=womble #master server
SOURCE=womble #source machine for original backup
DESTINATION=womble #destination/ target machine for restored files
STARTDATE=$1 #Startdate of earlist files to restore format mm/dd/yyyy
#Uncomment the line below if there is a restore file (restoring to an alt location)
bprestore -s $STARTDATE -S $MASTER -C $SOURCE -D $DESTINATION -L $LOGFILE -R $RENAMEFILE -f $FILELIST
#Uncomment the line below if you are restoring to the same location
#bprestore -s $STARTDATE -S $MASTER -C $SOURCE -D $DESTINATION -L $LOGFILE -f $FILELIST
root@womble scripts $
There are two commands, depending on if you are relocating which you are so the command is :
bprestore -s $STARTDATE -S $MASTER -C $SOURCE -D $DESTINATION -L $LOGFILE -R $RENAMEFILE -f $FILELIST
The top bit explains the files,a nd what to put in them.
This is actually a unix script - it works 100% correctly. Note, I only used -s <start date> you can use -e <end date> as well. You will alos need to use -t <type of policy>, mentioned in the other post.
Martin