Forum Discussion

S__Sankara_Nara's avatar
15 years ago

How to exclude files and directories from NDMP backups

How to exclude files and directories from NDMP backups

http://support.veritas.com/docs/235246

How to create a NetBackup class file  in netbackup to exclude certain files for taking ndmp backup?

I need to know the exact location & file Name.
  • from the tech note you are refering

    *.dbf, core, *.tmp ... all these are wild cards...

    Wild cards are not supported so excluding specific file extensions is not supported.  

7 Replies

Replies have been turned off for this discussion
  • if you use NBU console it is so simple...

    the doc is referring the class file list under the path \installpath\NetBackup\db\class

    for every policy you create in activity moniter a class file will be created and it contains all the parameters set under policy with indiviual file names.

    backup selection will be there with a file name "includes"; if you open that you can see what all you have provided in the backup selection tab.

    to be very clear, if you update the backup selection tab; it will in turn updates the class folder in the backend.

    For example:  To exclude a directory named /vol/vol1/A, but to dump the rest of the volume, create a NetBackup class file list which would look like this:
    SET EXCLUDE = A
    /vol/vol1

    To exclude multiple files or directories use commas to delimit the field:
    SET EXCLUDE = A,B,C
    /vol/vol1
  • from the tech note you are refering

    *.dbf, core, *.tmp ... all these are wild cards...

    Wild cards are not supported so excluding specific file extensions is not supported.  

  • do i need to edit the include class file under policy name in \installpath\NetBackup\db\class and put the set exclude in that?
  • as per the tech note exclude it under your backup selection tab of policy, automatically it will update the include file under class folder