Video Screencast Help
Give us your opinion and win with Symantec! Please help us by taking this survey to tell us about your experience with Symantec Connect, so that we can continue to grow and improve.  Take the survey.

run bprestore command line specify different restore path or folder

Created: 04 Jun 2014 • Updated: 18 Aug 2014 | 3 comments
This issue has been solved. See solution.
I cannot seem to figure out how to restore a folder that is getting backed up, to a different path 
other than the original.

netbackup is making backups of /home/dir1/

this command works fine, restoring /home/dir1 to its original location.
/usr/openv/netbackup/bin/bprestore -L /tmp/restore.log /home/dir1/
but, how can I specify that I want /home/dir1 tape backup to be saved to say /home/tmp/ folder?

Is that possible?

I know that via the GUI I can specify a different path, but i'd like to do it via command line.

Thanks!
Operating Systems:

Comments 3 CommentsJump to latest comment

Marianne's picture

You create a text file that we call a 'rename-file' that contains the source and destination folder, then add the filename to bprestore command with -R option.

See example in this TN: http://www.symantec.com/docs/HOWTO43687 

On UNIX and Linux systems: For example, the following entry renames /usr/fred to /usr/fred2:

change /usr/fred to /usr/fred2

So, if you create text file in /tmp called rename, and add the following in the file:

change /home/dir1 to /home/tmp

your command will look like this: 

/usr/openv/netbackup/bin/bprestore -L /tmp/restore.log -R /tmp/rename /home/dir1

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

SOLUTION
gimmegimmenothin's picture

Thanks Marianne.

I was missing the key step of creating the "change" file.  Its been a long day here. haha.

Does this require that prior to running the bprestore command that I create the "new" destination folder on the OS?

ex.  mkdir /home/tmp

Luke

Marianne's picture

I can honestly not remember - it's been a long time since I last 'played' with bprestore.

If memory serves me right, it will create the folder.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links