Use of Exclude list to Exclude selected directories
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.
- My current exclude list content is:
/*
/var/log/auditMy 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/*