cancel
Showing results for 
Search instead for 
Did you mean: 

Renaming Schedule

cus
Level 4
3 REPLIES 3

shrisai
Level 3

You can use bppolicynew command to rename an existing NetBackup policy.  For details please read the NetBackup 5.1 Command Reference/Guide for UNIX (http://support.veritas.com/docs/268116). 

Marianne
Level 6
Partner    VIP    Accredited Certified

How on earth did you dig up this 14-month old post?

Mauro_Barberis
Level 2
Employee

If already on the table, better to give what's out there.

There are quite a few commands to create/modify policies and schedules, and some of the arguments are tricky:

To create a new policy, use "bppolicynew":
# bppolicynew Policy_Name -M Master_Server

To modify an existing policy, use "bpplinfo":
# bpplinfo Policy_Name -modify -clienttype <Type> -pool <MediaPool> -residence <STU> -M <Master_Server>

To change Client Types, Pools, STUs, etc. Use "bpplinfo Policy_Name -set/-modify"
The difference between -set and -modify, is that when you use -set, you will initialize ALL the values that you do Not specify to DEFAULT.
When using -modify, you will be just modifying the values you want.

<Type> can be the following:
-Standard
-AFS
-DataStore
-DataTools-SQL-BackTrack
-DB2
-Enterprise-Vault
-FlashBackup
-FlashBackup-Windows
-Informix-On-BAR
-Lotus-Notes
-MS-Exchange-Server
-MS-SQL-Server
-MS-SharePoint
-MS-Windows-NT
-NBU-Catalog
-NCR-Teradata
-NDMP
-NetWare
-Oracle
-OS/2
-PureDisk-Export
-SAP
-Standard
-Sybase
-Vault

A few of the other commands you may want to use in conjunction may be:
-priority [0-99]
-active / -inactive
-compress [0-1]
-follownfs [0-1]
-crossmp [0-1]
-encrypt [0-1]
-granular_restore_info [0-1]

 

To create a new schedule, use "bpplsched":

Example, setting a Full Schedule, with Retention Level "1" (2 Weeks), Frecuency "1 Week" (the number 604800, translates to 1 week in Seconds)
# bpplsched Policy_Name -add Schedule_Name -type FULL -retlevel 1 -freq 604800 -residence "STU_Name" -pool "NetBackup" -cal 0 -M Master_Server

A more complex example, using Calendar Based schedule:

# bpplsched Policy_Name -add Schedule_Name -type FULL -ut -cal 1 -weekday 5 1 5 3 -tzo -28800 -M Master_Server

-weekday 5 1 5 3 translates to: 5 (Friday) 1 (1rst week) 5 (Friday) 3 (3rd week).

So this Policy will try to perform a Full backup on the 1st and 3rd Friday of the month.

To modify an existing schedule, use "bpplschedrep"

Examples changing Schedule Types:
# bpplschedrep Policy_Name Schedule_Name -type FULL -M Master_Server
# bpplschedrep Policy_Name Schedule_Name -type INCR -M Master_Server
# bpplschedrep Policy_Name Schedule_Name -type CINC -M Master_Server

To set up Start Window, use "bpplschedwin"
The following example will set a Start Window of 7 days per week, at all hours:
# bpplschedwin Policy_Name Schedule_Name -0 0 604800 -M Master_Server

A more complex example, using Calendar:

Start Window to start on Friday at 20:00hs, ending on Saturday at 02:00hs:

# bpplschedwin Policy_Name Full -0 0 0 -1 0 0 -2 0 0 -3 0 0 -4 0 0 -5 72000 21600 -6 0 0 -M Master_Server

Each 3-Number set corresponds to :
-0 0 0 : -0 (Day_of_the_Week), 0 (Starting_Time_in_Seconds), 0(Duration_Time_in_Seconds)

so -0 0 0 means: Sunday, No starting time, No duration time.

On friday:
-5 72000 21600 : -5 (Friday), 72000(72000s = 20Hs), 21600(21600s = 6Hs). So this Start Window will start on Friday, at 20Hs, and will be open for 6 Hours, until Saturday at 02:00AM.

 

To set up Backup Selections:

For example, to set up the backup selection as "ALL_LOCAL_DRIVES", you will need to use the bpplinclude command, and have a file already set, containing just the ALL_LOCAL_DRIVES line :

# bpplinclude Policy_Name -M Master_Server -add -f "/tmp/file.containing.ALL_LOCAL_DRIVES.string"

====================================

As reference, if you want to fetch the command lines used by the JAVA GUI (Open the console, make the change you want to record, exit the console), then grep the lines "TO[0]" from the nbjlogs produced when applying the steps of the following TN:

http://www.symantec.com/business/support/index?page=content&id=TECH56459

The first section will be authentication.. but after a few TO[0] go by, you'll get to the command used to perform the change you've requested, with full arguments.

 

Hope it helps!

Mauro