12-08-2011 01:05 AM
i am trying to redirect a restore to different client and to diff location...i tried below command but still it is going to same location on diff client...Please help....
bprestore -B -L C:\log_restore.txt -C client1 -D client2 -S master_server -t 13 -s 12/01/2011 -e 12/08/2011 -R /C/rename /Z/DailyBackups/master_03Dec2011_193000.LSB
both master and client is on windows......Please help..
Solved! Go to Solution.
12-08-2011 01:37 AM
Please post contents of '/C/rename'.
Important to enter a <CR> at the end of the line. If the <CR> is absent, the 'rename' does not work, and the data is restored to the original location.
See example in http://www.symantec.com/docs/TECH21196
Content of the rename file (one entry for each file or directory to be renamed, ensure each line to end with a return:(
Line 1: change [originalfile] to [newfile] (return)
Line 2: empty line
Please see TN for full details and examples.
12-08-2011 01:34 AM
What's the contents of the rename file /C/rename?
12-08-2011 01:36 AM
Is there a reason you want to do this from a command line?
Go to the Master Server, open the BAR GUI with the Master as the Server, client1 as the source and client2 as the destination
Select the files you want to restore and then on your restore options page put in the new path
Far easier.
Hope this helps
12-08-2011 01:37 AM
Please post contents of '/C/rename'.
Important to enter a <CR> at the end of the line. If the <CR> is absent, the 'rename' does not work, and the data is restored to the original location.
See example in http://www.symantec.com/docs/TECH21196
Content of the rename file (one entry for each file or directory to be renamed, ensure each line to end with a return:(
Line 1: change [originalfile] to [newfile] (return)
Line 2: empty line
Please see TN for full details and examples.
12-08-2011 01:54 AM
Thanks for ur reply...
contents of rename file is like below...pls help...it is restoring to original location
change /E/DR_Path to /X/Restore_Testing
12-08-2011 01:56 AM
Thanks for ur reply...
contents of rename file is like below...pls help...it is restoring to original location
change /E/DR_Path to /X/Restore_Testing
12-08-2011 02:02 AM
Have you a <CR> at the end of the line like Marianne said ?
12-08-2011 02:08 AM
Yes...
12-08-2011 02:22 AM
PLEASE ensure that there is a blank line at the bottom of the file.
I had the same experience ( data is restored to the original location ) when I did not have the blank line.
One more thing :
Your original location (as per your opening post) is:
/Z/DailyBackups
NOT
/E/DR_Path
as per your rename file. In this case, bprestore will ignore the rename file.
Change rename file to:
change /Z/DailyBackups to /X/Restore_Testing <CR>
12-08-2011 02:27 AM
bprestore -B -L C:\log_restore.txt -C client1 -D client2 -S master_server -t 13 -s 12/01/2011 -e 12/08/2011 -R /C/rename /Z/DailyBackups/master_03Dec2011_193000.LSB
change /E/DR_Path to /X/Restore_Testing
???
***EDIT***
Ninja'd - Ms vdB beat me to it!! ;)
12-08-2011 02:40 AM
Issue resolved now..thanks a lot for all ur help..