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

Problem

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.


Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)