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

  • Article ID:100016507
  • Modified Date:
  • Product(s):

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.
 
 

 

Was this content helpful?

Get Support