NetBackup HOWTO's
NBU Howto Site

Howto Restore Files or Directories to an Alternate Path Using bprestore

Written on 14 July 2009 – 14:56 by savasirez

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

If you liked this site, please support NetBackupHowto

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>