Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to temporarily de-activate policies

Setup Veritas Netbackup

How to temporarily de-activate policies

by  Stumpr  Posted    (Edited  )
The trick is that you need to keep Netbackup running as normal but you do not want other jobs to run. This is what I do to keep certain backup jobs from being submitted during business hours.

# crontab -l
0 6 * * 1-5 /usr/local/scripts/policy-deactivate.sh
0 17 * * 1-5 /usr/local/scripts/policy-activate.sh

# cat /usr/local/scripts/policy-deactivate.sh
#! /bin/sh
for i in `/usr/bin/cat /usr/local/scripts/policylist`
do
/usr/bin/echo $i
/usr/openv/netbackup/bin/admincmd/bpplinfo $i -modify -inactive
done

# cat /usr/local/scripts/policy-activate.sh
#! /bin/sh
for i in `/usr/bin/cat /usr/local/scripts/policylist`
do
/usr/bin/echo $i
/usr/openv/netbackup/bin/admincmd/bpplinfo $i -modify -active
done

# cat /usr/local/scripts/policylist
Prod_Messaging_Clus1
Prod_Messaging_Clus2
Prod_Messaging_Clus3
Prod_Messaging_Clus4
Prod_Messaging_Clus5
Prod_Messaging_Clus6
Prod_Messaging_Clus7
Prod_connect_BCV
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top