Howto Restore Files or Directories to an Alternate Path Using bprestore
Directory to restore:
Windows: C:deneme
Unix: /deneme
Alternate path:
Windows: C:deneme_yeni
Unix: /deneme_yeni
NetBackup master server name: netbackup
1. Regardless of the operating system, you must create a rename file. This file will be for which is changed to what…
Create the rename file, eg rename_file.txt
If you are restoring on windows, Your file should look like this,
change /C/deneme to /C/deneme_yeni
If you are restoring on unix, your file should look like this,
change /deneme to /deneme_yeni
Don’t forget, this file MUST end with a blank line.
On windows, drive letters MUST always be uppercase
2. Start your restore using bprestore command like the following:
Windows,
bprestore -R /C/rename_file.txt -C netbackupĀ /C/deneme
Unix,
bprestore -R /rename_file.txt -C netbackup /deneme
The above command will restore from your last backup. To restore from a spesific time, try to use -s and -e switches.
bprestore -R /C/change_file.txt -C netbackup -s 07/14/2009 00:00:00 -e 07/14/2009 02:00:00 /C/deneme
If you want to log your progress, use -L switch.
bprestore -L /C/deneme1.log -R /C/change_file.txt -C netbackup -s 07/14/2009 00:00:00 -e 07/14/2009 02:00:00 /C/deneme