cancel
Showing results for 
Search instead for 
Did you mean: 

Use of Exclude list to Exclude selected directories

abhas_mangal
Level 3

Hi,

I am running Netbackup 6.0 Server MP5
I need to exclude certain directories under /var/ directory on Linux RHEL 5 client while taking backup of var directory and include all other data of /var/ for Backup.
My current exclude list content is:
/*
/var/log/audit

My current include list content is:
/var/log/*

But its still taking /var/log/audit data during the backup. Can you please guide me how should I change above files to solve the problem?

Thanks,
Abhas.

1 ACCEPTED SOLUTION

Accepted Solutions

J_H_Is_gone
Level 6
My current exclude list content is:
/*
/var/log/audit

My current include list content is:
/var/log/*


Lets start with what you said you had.

/*  - here is a problem for me - this says DO NOT BACKUP ANYTHING.  Do you really mean that?
       most people only make an exclude list of items they do not want - and on UNIX systems you usually want /

so we start by removing the /* from your exclude list.

now you have an include list (based on what you are starting with the /* in the exclude list you are ONLY backing up /var/log.)

so lets remove the include list all together - don't even have the file.


so that leaves us with:
no include list - which means include EVERYTHING except what is in the exclude_list.

In the exclude_list you have
/var/log/audit/*   (I say you should have the /*  on the end this way the "dir" audit gets backed up but the contents do not - this way if you ever have to do a restore because someone removed /var/log the audit dir will get recreated so jobs can use it)

so now you backup everything to tape except the contents of the /var/log/audit dir.
you may want to include a few other things in the exclude list like /proc/*  /cd/*


----------------------------------

however if you ONLY want to backup /var/log but NOT /var/log/audit

in your policy your file selection would be /var/log
and your exclude_list would still have /var/log/audit/*

 

View solution in original post

7 REPLIES 7

rishi_rich
Level 5
Hello,

I hope you are excluding by creating file in /usr/openv/netbackup/exclude_list in Linux client.?
edit this file and give /var/log/* in side this.This will work for you

lknishad
Level 3
Certified
Hi,

1.Exclude_list->      Add /var/log/* in /usr/openv/netbackup/exclude_list.

2.Include_list->      Add what ever the file and dir you want to backup in /usr/openv/netbackup/include_list. example /var/log/*.conf.



zippy
Level 6
 /* says dont backup anything on the UNIX server, be specific.

Jim

Sriram
Level 6
Here is some useful information i found:

http://seer.entsupport.symantec.com/docs/268665.htm

Additional tips on using exclude_list and include_list for managing files to
be excluded and included in a backup

Details:

This is additional information which should be used in conjunction with the
exclude_list/include_list information in the VERITAS NetBackup (tm) System
Administrator's Guide for UNIX.



1. An include_list can contain only directories and files that are a subset
of the files list defined in the policy.

For example:

If the files list defined in the policy is /etc/*, do not have an
include_list specify anything outside of that criteria.

In this case, an include_list with the entry /var/* would not be permitted.
NetBackup would ignore it.



2. An include_list requires a corresponding exclude_list.

For example:

If files list defined for a policy is /etc/*

The exclude_list entry could be /etc/* and the include_list entry could be
/etc/*.conf.

This will result in backing up only the *.conf files in the /etc directory.



3. When using the exclude_list and the include_list, one should give
significant thought and planning to the process. Because of the way that
NetBackup processes the information, it can add significant processing
overhead to the backup. The first thing that NetBackup does on an automatic
backup, is to build the backup file list (work list) using the policy's
include files. So if you have specified the root directory (/) with the
cross mount points attribute set, it will build a file list of all mounted
file systems. Next, NetBackup checks for the exclude_list, and if the
exclude_list is /*, NetBackup will throw away the backup list it has just
made. NetBackup then reads the include_list and in this case builds a new
backup list of directories and files to include in the backup.

abhas_mangal
Level 3

Hi,

I need to exclude /var/log/audit folder when backup is performed on the Linux Client & include all other files/directories under the /var/log/ folder when taking the backup.
If my exclude_list file contains /var/log/* , then Netbackup will initially exclude all data from the directory and I will have to then write all other directories in /var/log except /var/log/audit that should be taken for backup. This is the process that is generally done in most of the Clients for taking File-System backup,
But if I follow above said process, then if some changes are done thereafter in /var/log folder like adding new folder that should be backed up, then the same folder should be present in include_list ile as exclude_list contains entry to exclude data under /var/log/*.
I need to modify include_list & exclude_list in such a way that each time a backup is performed Netbackup only exclude /var/log/audit folder & I dont have to include all other folders that should be taken for backup in /var/log/ folder.

Please let me know if anyone has queries on what I have posted as I am just a begineer.
Thanks for all who have suggested me earlier. Waiting for more suggestions to help me solve the problem.

Thanks,
Abhas.

J_H_Is_gone
Level 6
My current exclude list content is:
/*
/var/log/audit

My current include list content is:
/var/log/*


Lets start with what you said you had.

/*  - here is a problem for me - this says DO NOT BACKUP ANYTHING.  Do you really mean that?
       most people only make an exclude list of items they do not want - and on UNIX systems you usually want /

so we start by removing the /* from your exclude list.

now you have an include list (based on what you are starting with the /* in the exclude list you are ONLY backing up /var/log.)

so lets remove the include list all together - don't even have the file.


so that leaves us with:
no include list - which means include EVERYTHING except what is in the exclude_list.

In the exclude_list you have
/var/log/audit/*   (I say you should have the /*  on the end this way the "dir" audit gets backed up but the contents do not - this way if you ever have to do a restore because someone removed /var/log the audit dir will get recreated so jobs can use it)

so now you backup everything to tape except the contents of the /var/log/audit dir.
you may want to include a few other things in the exclude list like /proc/*  /cd/*


----------------------------------

however if you ONLY want to backup /var/log but NOT /var/log/audit

in your policy your file selection would be /var/log
and your exclude_list would still have /var/log/audit/*

 

abhas_mangal
Level 3
The last post did the trick for me and right now the data is getting backed up as expected.
Thanks for all of your help.