05-24-2018
02:17 AM
- last edited on
05-24-2018
02:31 AM
by
Marianne
**** Moved to new discussion from : https://vox.veritas.com/t5/NetBackup/How-to-exclude-a-SQL-DB-of-a-particular-instance-from-backup/m-... ****
Is there any way to exclude offline db's alone?
@Marianne wrote:
Have a look at this TN:
Keywords and values used in batch files: http://www.symantec.com/docs/HOWTO85316My suggestion is to specify each Instance separately followed by DATABASE $all and then add EXCLUDE DB01 in the relevant Instance section.
e.g.
SQLINSTANCE Instance1 OPERATION BACKUP DATABASE $ALL EXCLUDE DB01 NBSERVER .... ... ENDOPER TRUE SQLINSTANCE Instance2 OPERATION BACKUP DATABASE $ALL NBSERVER ...
I have not tried this, but I guess worth a try?
Or else separate scripts for each Instance as per above suggestion.
05-24-2018 02:33 AM
Asked and answered in this 'Related discussion':
05-29-2018 10:36 PM
Thanks I exluded the Dbs using EXCLUDE option.
@manha3560 wrote:**** Moved to new discussion from : https://vox.veritas.com/t5/NetBackup/How-to-exclude-a-SQL-DB-of-a-particular-instance-from-backup/m-... ****
Is there any way to exclude offline db's alone?
@Marianne wrote:Have a look at this TN:
Keywords and values used in batch files: http://www.symantec.com/docs/HOWTO85316My suggestion is to specify each Instance separately followed by DATABASE $all and then add EXCLUDE DB01 in the relevant Instance section.
e.g.
SQLINSTANCE Instance1 OPERATION BACKUP DATABASE $ALL EXCLUDE DB01 NBSERVER .... ... ENDOPER TRUE SQLINSTANCE Instance2 OPERATION BACKUP DATABASE $ALL NBSERVER ...
I have not tried this, but I guess worth a try?
Or else separate scripts for each Instance as per above suggestion.
06-09-2023 11:33 AM
i Have tested it , It's worked
Thanks
06-09-2023 11:36 AM
Hi I have tested the SQL excluding DB into script , and found it worked .
Thanks for KT ...