How to run bprestore from the command line to restore information to an alternate path and/or client
| Article:TECH21196 | | | Created: 2002-01-16 | | | Updated: 2010-01-14 | | | Article URL http://www.symantec.com/docs/TECH21196 |
Problem
How to run bprestore from the command line to restore information to an alternate path and/or client
Solution
Overview:
Provide detailed instructions on how to initiate a restore via the command line to an alternate client and/or location using the bprestore command.
LOCATION:
for Window : \Veritas\Netbackup\bin
for Unix: /usr/openv/netbackup/bin
the command can be initiated from the client (destination) or from the master server
SYNTAX:
For same client:
>bprestore -B -L <progress log> -R <RenameFileList> -f <RestoreFileList>
For different client:
>bprestore -B -L <progress log> -C <sourceClient> -D <destinationClient> -R <RenameFileList> -f <RestoreFileList>
OPTIONS:
<progress log> = location of the restore progress log including filename
<RenameFileList> = full path of a text file with rename instruction
<RestoreFileList> = list of file to be restored
*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
EXAMPLES:
To restore all files under D:\Projects to the same client at E:\Restorefiles\
Step1: create the rename file,, named "rename.txt", located: c:\temp\rename.txt, put the following entry in the file:
----------------------------------------------------------
change /D/Projects to /E/Restorefiles/
Note: make sure to hit return above to start a new empty line here
Provide detailed instructions on how to initiate a restore via the command line to an alternate client and/or location using the bprestore command.
LOCATION:
for Window : \Veritas\Netbackup\bin
for Unix: /usr/openv/netbackup/bin
the command can be initiated from the client (destination) or from the master server
SYNTAX:
For same client:
>bprestore -B -L <progress log> -R <RenameFileList> -f <RestoreFileList>
For different client:
>bprestore -B -L <progress log> -C <sourceClient> -D <destinationClient> -R <RenameFileList> -f <RestoreFileList>
OPTIONS:
<progress log> = location of the restore progress log including filename
<RenameFileList> = full path of a text file with rename instruction
<RestoreFileList> = list of file to be restored
*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
EXAMPLES:
To restore all files under D:\Projects to the same client at E:\Restorefiles\
Step1: create the rename file,, named "rename.txt", located: c:\temp\rename.txt, put the following entry in the file:
----------------------------------------------------------
change /D/Projects to /E/Restorefiles/
Note: make sure to hit return above to start a new empty line here
----------------------------------------------------------
Step2: create the restore filelist, named
"filelist.txt", located c:\temp\filelist.txt, put the following entry in the
file:
-----------------------------------------------------------
/D/Projects
-----------------------------------------------------------
Step3:
run the restore command from the client:
>bprestore -L /C/temp/restore.log -R /C/rename.txt
-f /C/filelist.txt
|
|
Legacy ID
249076
Article URL http://www.symantec.com/docs/TECH21196
Terms of use for this information are found in Legal Notices









Thank you.