04-16-2012 06:28 AM
I am lookimg at automating netbackup restores at user level .. Is there any third party tool which can simplify this ?
example - user enters
server name
date of restore
path of data
restore path
and upon interactive input ..should be able to restore without netbackup administrator help
04-16-2012 06:38 AM
You could write a shell script (if customers system is UNIX based) and that may work.
Otherwise you could give your user/s access to the Backup, Archive and Restore GUI, but this gives them access to restore from all systems.
Normally you would restrict restores only to administrators.
04-16-2012 06:50 AM
Or is it all disk-based?
04-16-2012 07:32 AM
I cannot see this being automated unless you are a very accomplished script writer.
Get your users to start using bprestore command.
Using bprestore from cmd (or script) to alternate folder requires setup of <RenameFile>. If more than one folder needs to be restored, <RestoreFileList> text file will also be needed. See http://www.symantec.com/docs/TECH21196
Another thought:
Why not just teach them to use the GUI? Client-side GUI will be easiest.
See NBU Backup, Archive, and Restore Getting Started Guide http://www.symantec.com/docs/DOC3642
04-16-2012 09:32 PM
Interactive scripts for users? That would be an intensive task to do from my opinion, not to mention keeping track of the request logs.
My suggestion: you can setup security for your Netbackup environment, either by NBAC or Java console auth.conf. This would allow you to create a "shared" user (or even more users) who can only access the GUI to perform restore-only task.
04-16-2012 11:43 PM
Netbackupfan,
You need to ask yourself the question. Do you want users to be able to restore from any client backup to any system? This poses possible security conflicts.
04-17-2012 02:12 AM
.
04-17-2012 02:16 AM
Here is a basic interactive restore script as requested.
At the moment, this does NOT cope with alternate location restores - I'll add this when I get time.
It does not really do any checking - for example, is the master server name entered valid etc ... This is not really essential for basic functionality, I might add this in if I get time.
Run it like this .. /tmp/filelist contains the list of files to restore in format :
/path/to/file1
/path/to/file2
Run it like this ...
./restore2.sh 04/16/2012