10-08-2009 04:56 PM
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.
Solved! Go to Solution.
10-09-2009 12:22 PM
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/*
10-08-2009 09:04 PM
10-09-2009 02:03 AM
10-09-2009 07:01 AM
10-09-2009 08:50 AM
10-09-2009 12:11 PM
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.
10-09-2009 12:22 PM
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/*
10-12-2009 03:38 PM