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

Article:TECH34216  |  Created: 2004-01-07  |  Updated: 2013-10-23  |  Article URL http://www.symantec.com/docs/TECH34216
Article Type
Technical Solution

Product(s)

Environment

Issue



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

Solution



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 -l -R /home/admin/rename /usr/Dir1

The -l specifies that all UNIX hard and soft links be changed.



Legacy ID



271250


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


Terms of use for this information are found in Legal Notices