Video Screencast Help
Symantec Appoints Michael A. Brown CEO. Learn more.

I am trying to do a restore redirect

Created: 11 Oct 2012 • Updated: 11 Dec 2012 | 4 comments
This issue has been solved. See solution.

I am trying to restore data that was backed up on one client and restore it to a directory on another machine through the command line. I have many backups that have to be done. I want to automate the process. I am using the following CL syntax.

 

 

C:\Program Files\Veritas\NetBackup\bin>bprestore -C clienta -D serverb -R change /clienta/d/ to /serverb/F/test/clienta/2002/APR/22/ -s 04/22/2002 -e 04/22/2002
 
I get the following error when I run the CLC The rename file change must start with '/'. EXIT STATUS 144: invalid command usage
 
Could someone help me?
 
Thanks,
 
Matt

Comments 4 CommentsJump to latest comment

Nicolai's picture

The rename directive only take a file as input. See T/N

How to use the bprestore command to redirect a restore to an alternate path on the client

http://www.symantec.com/docs/TECH34216

How to run bprestore from the command line to restore information to an alternate path and/or client

http://www.symantec.com/docs/TECH21196

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

SOLUTION
mwells_blm's picture

I have backups from many days and I need to restore each to an individual directory. Is there a way to automate this? I want to be able to put the command into a batch file and then run the batch file. Do I have to use the extra file for the detination. If that is the case then I will just have to do it through the GUI.

 

I do not want to change the file names only the restore location.

Nicolai's picture

The use of rename file is required. You can't specify the rename path on the command line.

You can automate but that require scripting skills.

Best Regards

Nicolai

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.