Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bprestore different path 1

Status
Not open for further replies.

dustworm

Programmer
Apr 10, 2008
5
US
Hi,
I am using bprestore command under Windows server.
What I need is to restore to different folder than original backup. I know there is flag -R that renames/re-directs original files to specific directory. However, I am unable to do the same under Windows. Is there such flag and if so how to use it?
Thanks!
 
-R rename_file Specifies the name of a file with name changes for alternate-path restores.
For example: bprestore -R /C/renamefile /C/origfile
Where /C/rename_file is the file with the name change and /C/origfile is the file to be renamed.
Use the following form for entries in the rename file:
change backup_filepathto restore_filepath
The file paths must start with / (slash)
The first backup_filepaththat is matched is replaced with the restore_filepathstring. Use all upper case for the drive letter.
The default is to restore using the original path.
For example, the following entry renames C:\users\fred to C:\users\fred2:
change /C/users/fred to /C/users/fred2
(be sure to end the entry with a return)
When restoring to a Windows client, you can also use the following method for specifying entries in the rename file (do not use this method for other clients):
rename bulengthbackup_filepathreslengthrestore_filepath
Where:
bulengthis the number of ASCII characters in the backup path.
reslengthis the number of ASCII characters in the restore path.
The first backup_filepaththat is matched is replaced with the restore_filepathstring.
For example, the following entry renames C:\fred.txt to C:\fred2.txt:
rename 11 /C/fred.txt 12 /C/fred2.txt
(be sure to end the entry with a return)


Bob Stump
VERITAS - "Ain't it the truth?"
 
Thank you for your reply, however.
This method does not work.
I have tried it several times without any success.
 
please show me

Bob Stump
VERITAS - "Ain't it the truth?"
 
command:
bprestore -C <client name> -D <destination server>
-L <log_file> -R /C/test/ /F/

nothing happens, except that the log file contains error messages, cannot find F drive for each file.

Cheers
 
FYI
I have also tried with -R C:\test F:\ but that did not help either
 
what is test in your syntax?
is it the textfile containing the restore filelist?

bprestore -C mickey -D mouse -L c:\goofy
-R /C/files_tobe_restored /F/

The contents of the textfile /C/files_tobe_restored
change /C/* to /F/*




Bob Stump
VERITAS - "Ain't it the truth?"
 
I have not used any text file because I am restoring multiple partitions from multiple computers. It would be too much to list all of it. However, I will give it a try now.

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

Details:
To restore data to an alternate path on the same client, you must create a rename file and then use the rename file in the bprestore command.

1. Create a rename file.

Use the following form for the entries in the rename file:

change backup_filepath to restore_filepath

The file paths must start with / (slash).

For example, the following entry in the rename file named /home/admin/rename will restore /usr/Dir1 to /usr/Dir2.

change /usr/Dir1 to /usr/Dir2

2. The syntax for the bprestore command.

/usr/openv/netbackup/bin/bprestore -l -R rename_file filenames

For example, the following command will restore directories and files under /usr/Dir1 to /usr/Dir2.

/usr/openv/netbackup/bin/bprestore -R /home/admin/rename /usr/Dir1


Bob Stump
VERITAS - "Ain't it the truth?"
 
Remenber to give the absolute pathname to the rename file.
You cannot directly do the alternte destintion from the command line. You must make use of the rename file that is a textfile containing the change/to statements.

Bob Stump
VERITAS - "Ain't it the truth?"
 
so close...
I'm quite certain if you keep trying combinations of what I have already provided that eventually you will get it. Please post the correct syntax when you resolve this.


Bob Stump
VERITAS - "Ain't it the truth?"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top