Veritas-bu

Re: [Veritas-bu] exclude_list - exclude core file but not core

2011-08-29 13:19:36
Subject: Re: [Veritas-bu] exclude_list - exclude core file but not core
From: "David McMullin" <David.McMullin AT CBC-Companies DOT com>
To: "veritas-bu AT mailman.eng.auburn DOT edu" <veritas-bu AT mailman.eng.auburn DOT edu>
Date: Mon, 29 Aug 2011 13:19:35 -0400
Please note - many software, in their wisdom, have directory and files named or 
beginning with core, including pdde, jdk, tomcat and oracle.

find / -name core* -exec ls -lad {} \;

I do not exclude core, since my failure definition is not being able to 
restore, not backing up too much stuff!
I DO work to keep excessive core files off my systems though...

Space, the final frontier - is not just a Star Trek slogan, it is a sysadmin 
lament...


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

Message: 2
Date: Sun, 28 Aug 2011 19:31:28 -0500
From: David Rock <david AT graniteweb DOT com>
Subject: [Veritas-bu] exclude_list - exclude core file but not core
        directory
To: veritas-bu AT mailman.eng.auburn DOT edu
Message-ID: <20110829003128.GA11004@wdfs>
Content-Type: text/plain; charset=us-ascii

Hello,

I'm dealing with exclude_list for the umteenth time, and stumbled into a
classic problem.

The examples in the docs have always shown excluding "core", which
excludes all core files AND core directories.  Because of how you define
things, it is possible to exclude just directories by appending / (e.g.,
core/), but there is no corresponding way that I can find to exclude
ONLY files named core.

I can more or less accomplish what I need to by using an include_list
that contains "core/", but this will obviously add processing overhead
because it's going to build the initial list, drop excluded stuff, then
go back through all the excluded directories and look for all
directories named "core".  I especially don't want the include list to
go back and re-add any core directories under other directories that I
have also excluded.

For example:
exclude_list:
core
/dev
/sys
/mnt/auto
/var/mqm/
/u[0-9]*/

If I have an include_list that looks like this:
core/

It will pick up any directories named core under:
/dev
/sys
/mnt/auto
/var/mqm/
/u[0-9]*/

Which I do NOT want it to do.


Does anyone know if it's possible to define JUST files named core in the
exclude_list, so that an include_list is not necessary?  If an
include_list is the only way to do it, is it possible to avoid the
re-adding under the directories I _do_ want to exclude?

Thanks.

-- 
David Rock
dave-bu AT graniteweb DOT com


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

Message: 3
Date: Mon, 29 Aug 2011 10:27:55 +0530
From: Anurag Sharma <sharma.anurag AT hotmail DOT com>
Subject: Re: [Veritas-bu] exclude_list - exclude core file but not
        core directory
To: <dave-bu AT graniteweb DOT com>, <veritas-bu AT mailman.eng.auburn DOT edu>
Message-ID: <SNT131-W203D3C6E2D5AABC87F0829EB140 AT phx DOT gbl>
Content-Type: text/plain; charset="iso-8859-1"


Dave,
 
To exclude all files with a given name, regardless of their directory path, 
just enter the name without a preceding slash. For example: "example" rather 
than "/example" 
 
Here is an example *exclude_list* 
 
 
-----------------------------------------------
 
 
 
# this is a comment line
/tmp/example/dir/all
/tmp/example/dir2only/
/usr/home/*/all_tmp
/*/all_temp
core
 
--------------------------------------------------
 
Anurag 
 

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Veritas-bu] exclude_list - exclude core file but not core, David McMullin <=