Bacula-users

Re: [Bacula-users] Need help with wildfile specification

2008-04-17 15:14:45
Subject: Re: [Bacula-users] Need help with wildfile specification
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 17 Apr 2008 20:13:47 +0100
>>>>> On Tue, 15 Apr 2008 13:53:00 -0700 (PDT), Hemant Shah said:
> 
> --- Bob Hetzel <beh AT case DOT edu> wrote:
> 
> > Hemant,
> > 
> > 1) If you haven't already looked at the manual at 
> > http://www.bacula.org/en/?page=documentation then the examples you
> > want 
> > to check out are at 
> >
> http://www.bacula.org/en/rel-manual/Configuring_Director.html#SECTION001470000000000000000
> > 
> > 2) You probably don't need to use a regex... in my case on windows
> > the 
> > filedaemon had some issues when I put several of those in, but your 
> > mileage may vary.  To use the WildFile and WildDir you can use lines
> > like
> > 
> > WildDir = "/*/tmp"
> > 
> > WildFile = "*/core"
> > 
> > etc
> > 
> > Note that you have to be careful as if it matches on a directory it
> > will 
> > automatically not backup anything below that directory.
> > 
> > > Date: Thu, 3 Apr 2008 12:03:35 -0700 (PDT)
> > > From: Hemant Shah <hjrrs AT yahoo DOT com>
> > > Subject: [Bacula-users] Need help with wildfile specification
> > > To: baculausers <bacula-users AT lists.sourceforge DOT net>
> > > Message-ID: <389755.20605.qm AT web51603.mail.re2.yahoo DOT com>
> > > Content-Type: text/plain; charset=iso-8859-1
> > > 
> > > Folks,
> > > 
> > >  I want to exclude from backup all files named "core", all
> > > directories named "tmp" and all directories named ".snapshot"
> > > 
> > > Example:
> > > 
> > > It should not backup
> > > 
> > > /a/core
> > > /b/c/d/core
> > > /x/tmp/*
> > > /x/y/tmp/*
> > > /e/.snapshot/*
> > > /e/f/g/h/.snapshot/*
> > > 
> > > etc.
> > > 
> > > What regex whould I use?
> > > 
> > > 
> > > 
> > > Hemant Shah
> > > E-mail: hjrrs AT yahoo DOT com
> > > 
> > > 
> > >      
> >
> ____________________________________________________________________________________
> > > You rock. That's why Blockbuster's offering you one month of
> > Blockbuster Total Access, No Cost.  
> > > http://tc.deals.yahoo.com/tc/blockbuster/text5.com
> > > 
> > > 
> > 
> > 
> 
> 
> 
> 
> I added pattern to the exclude list but it is not working as expected.
> 
> 
> Here is what I have in include/exclude list:
> 
> FileSet {
>   Name = "lidp4 Set"
>   Include {
>     Options {
>        signature = MD5
>     }
>     File = /
>     File = /usr
>     File = /var
>     File = /opt
>     File = /home
>     File = /g2
>     File = /g2/apdev60/cob
>     File = /g2/apdev60/dbcob
>   }
>   Exclude {
>     Options {
>        signature = MD5
>        WildDir = "*/.snapshot"
>        WildFile = "*/core"
>        WildDir = "/*/cob"
>        WildDir = "/*/dbcob"
>     }
>     File = /proc
>     File = /tmp
>   }
> }
> 
> 
> 
> Bacula is backing up "cob" directory as seen below from status command:
> 
> Running Jobs:
> JobId 26 Job lidp4.2008-04-15_14.46.04 is running.
>     Backup Job started: 15-Apr-08 14:46
>     Files=248,786 Bytes=7,118,188,791 Bytes/sec=1,991,658 Errors=0
>     Files Examined=248,786
>     Processing file: /g2/apunifi/cob/fxt/adb/acdsc/u/ClientTypeCode
>     SDReadSeqNo=5 fd=5
> Director connected at: 15-Apr-08 15:45
> 
> 
> What am I missing?

I think the problem is that the Exclude section only handles Wild, not WildDir
and WildFile.

You can fix this by moving the exclude Options into the Include section with
an exclude = yes option.

__Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>