cancel
Showing results for 
Search instead for 
Did you mean: 

scripting in Backup

ram619
Level 5
Certified

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.

7 REPLIES 7

Will_Restore
Level 6

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.

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

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.

ram619
Level 5
Certified

No Specific situations..Just want to get some basic script knowledge...

Marianne
Level 6
Partner    VIP    Accredited Certified

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

 

J_H_Is_gone
Level 6

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.

watsons
Level 6

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. 

ram619
Level 5
Certified

Hi All,

Thank you very for your valuable comments on my query. As Hinch stated ill start to learn from basic commands..