05-09-2011 06:24 AM
Hi all,
Am working with veritas platform for past 14 months. Am very curious to learn about scripting in Backup.Kindly give some basic information or web links to know more about scripting.
05-09-2011 06:43 AM
One could use scripts for many different situations: process shutdown/startup, database control, reporting, etc. There are examples in the Admin Guides and samples in NetBackup goodies directory.
05-09-2011 07:05 AM
CLI scripting or oneliners are handy if you want to report/format and update multiple components without having to type and update the command each time. You can do most things with IF and WHILE statements. AWK is handing for formatting / manipulating output from NetBackup commands into something you can use. GREP (UNIX) and FINDSTR (Windows) helps you look for certain things in the lines that are returned.
If you have examples of something you'd like to script (or achieve), post them.
05-09-2011 07:48 AM
No Specific situations..Just want to get some basic script knowledge...
05-09-2011 08:04 AM
Get to know NBU commands - most GUI actions can be accomplished using cmd.
Scrips are basically collections of NBU commands or one command than you run repeatedly against an input list.
Commands manuals:
NBU 6.5 : http://www.symantec.com/docs/TECH52832
NBU 7.0 : http://www.symantec.com/docs/TECH127047
NBU 7.1: http://www.symantec.com/docs/DOC3684
05-09-2011 08:39 AM
Scripting for Netbackup is nothing different then basic scripting with NetBackup commands.
Learn
if statements
While/do/done
Case statements
and procedures
then just add Netbackup commands to do what you want.
Places to use the scripts is in the notify scripts(see NB manuals), cron, or windows job scheduler.
05-10-2011 04:29 AM
What you ask here is too general, but I think you've got lotsa answers :)
You can find some pre-defined scripts in:
/usr/openv/netbackup/bin/goodies
Some scripts are Perl-based. Script can be very useful in some operation such as pre or post backup/restore task and simple report generation.
05-11-2011 04:44 AM
Hi All,
Thank you very for your valuable comments on my query. As Hinch stated ill start to learn from basic commands..