----- Original Message ----- 
From: "Kern Sibbald" <[EMAIL PROTECTED]>
To: <bacula-users@lists.sourceforge.net>
Cc: "Arunav Mandal" <[EMAIL PROTECTED]>; "Matthias Kurz"
<[EMAIL PROTECTED]>
Sent: Monday, September 12, 2005 7:56 PM
Subject: Re: Fw: [Bacula-users] Filset exclusions


> On Monday 12 September 2005 19:29, Arunav Mandal wrote:
> > ----- Original Message -----
> > From: "Matthias Kurz" <[EMAIL PROTECTED]>
> > To: "Arunav Mandal" <[EMAIL PROTECTED]>
> > Sent: Monday, September 12, 2005 1:09 PM
> > Subject: Re: Fw: [Bacula-users] Filset exclusions
> >
> > > On Sun, Sep 11, 2005, Arunav Mandal wrote:
> > >
> > > [...]
> > >
> > > > > I am using bacula 1.36.3 version and I tried this Filset but still
I
> >
> > can't
> >
> > > > > exclude mp3's and other files which I want to exclude. Anything I
am
> > > >
> > > > missing
> > > >
> > > > > here?
> > > > >
> > > > > FileSet {
> > > > >   Name = linux-default
> > > > >   #Ignore Fileset changes = yes
> > > > >   Include {
> > > > >   Options {
> > > > >   signature=SHA1
> > > > >   verify=pins1
> > > > >   onefs=no
> > > > >   sparse=no
> > > > >   wildfile = *.mp3
> > > > >   wildfile = *.m4a
> > > > >   wildfile = *.o
> > > > >   wildfile = *.obj
> > > > >   wildfile = *.vob
> > > > >   wildfile = *.VOB
> > > > >   Exclude = yes
> > > > > }
> > > > >   File = /
> > > > >   }
> > >
> > > Works for me. Though, i'm using 1.37.38.
> > > Does it only fail to exclude .mp3s or is none of the above excluded ?
> > > Is this really exactly the FileSet you're using ? Or did you edit it,
> > > before you posted ? Did you verify the FileSet name in the job record
?
> > > You did restart the daemons or reloaded the config, didn't you ?
> > > There is another recommendation, that pops up every now and then: Put
> > > the strings with "special" characters in it into double quotes. It
> > > works for me without the quotes, but maybe this is a "historical" hint
> > > and it was necessary in earlier versions.
> >
> > It works for non LVM partitions but not on LVM partitions. Yes this is
the
> > fileset I used and I used different combinations but with no use. I
checked
> > all conf files and everything looks ok. I restart and done everything..
> >
>
> Can you clarify the above statement?  Wildcard matching should depend only
on
> the filenames and not on LVM or non-LVM partitions, unless there is
something
> really strange about those partitions that I don't understand.
>
> Please note that no files will be backed up on any mounted partition under
/.
>

Ok I will clarify a bit more. Presently I am using the Fileset given below
for linux machines. Now it backs up everything under / leaving the
directories under Exclusion list. Even the wildfile works for non LVM
partitions atleast I tested on machine without LVM. For another machine with
LVM wildfile doesnt work. I will give the partition structure of both LVM
and non LVM machines below. The mp3's in question is under /space/test02/
for LVM machine and /home/test01/ for non LVM machine.

FileSet {
  Name = linux-default
  Ignore Fileset changes = yes
  Include {
  Options {
  signature=SHA1
  verify=pins1
  onefs=no
  sparse=no
  wildfile = *.m4a
  wildfile = *.o
  wildfile = *.obj
  wildfile = *.vob
  wildfile = *.VOB
  wildfile = *.journal
  wildfile = *.fsck
  Exclude = yes
}
  File = /
  }

  Exclude {
        File = /sys
        File = /proc
        File = /tmp
        File = /.journal
        File = /.fsck
        File = /mnt
        File = /dev

}
}


LVM machine
--------------

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             1.1G  638M  390M  63% /
tmpfs                 499M     0  499M   0% /dev/shm
tmpfs                 499M  6.8M  492M   2%
/lib/modules/2.6.12-6-amd64-xeon/kernel/drivers/volatile
/dev/sda1              52M   38M   12M  77% /boot
/dev/mapper/sysrhea-opt
                      2.0G   33M  2.0G   2% /opt
/dev/mapper/sysrhea-tmp
                      1.0G   40M  985M   4% /tmp
/dev/mapper/sysrhea-usr
                      8.0G  2.4G  5.7G  30% /usr
/dev/mapper/sysrhea-var
                      2.0G  1.4G  684M  67% /var
/tmp                  1.0G   40M  985M   4% /var/chroot/hoary-ia32/tmp
tmpfs                  10M  2.8M  7.3M  28% /dev
/dev/mapper/sysrhea-space
                       36G   34G  2.6G  93% /space
/dev/mapper/sysrhea-home
                       22G   16G  6.1G  73% /home
/home                  22G   16G  6.1G  73% /var/chroot/hoary-ia32/home


Non LVM machine
---------------------

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2             41286828   5364624  33824920  14% /
tmpfs                   451932        12    451920   1% /dev/shm
/dev/sda5             13946856   1112820  12125572   9% /home



Arunav.




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to