cancel
Showing results for 
Search instead for 
Did you mean: 

Redirecting restore to alternate client and to diff location

Paramesh
Level 4

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

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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.

View solution in original post

10 REPLIES 10

Andy_Welburn
Level 6

What's the contents of the rename file /C/rename?

Mark_Solutions
Level 6
Partner Accredited Certified

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

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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.

Paramesh
Level 4

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

Paramesh
Level 4

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

Gautier_Leblanc
Level 5
Partner Accredited

Have you a <CR> at the end of the line like Marianne said ?

Paramesh
Level 4

Yes...

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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>

Andy_Welburn
Level 6

 

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!! ;)

Paramesh
Level 4

Issue resolved now..thanks a lot for all ur help..