Bacula-users

Re: [Bacula-users] FileSet problem

2008-06-11 16:45:33
Subject: Re: [Bacula-users] FileSet problem
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 11 Jun 2008 21:45:10 +0100
>>>>> On Wed, 11 Jun 2008 17:41:11 +0200, Peter Schumann said:
> 
> Hi List
> 
> I try to backup our Maildir and don't get it running.
> 
> The directory tree looks like this /home/$user/Maildir.
> I've not found any way to backup only the Maildirs.
> 
> I'm able to backup /home without /home/$user/Maildir and of course the 
> hole /home.
> 
> I wonder if it's not possible.
> 
> This is the actual FileSet definition witch result is that only /home 
> (the directory entry)  is backed up.
> 
> 
> FileSet {
>         Name = "maildirs"
>         Include {
>                 Options {
>                         signature=MD5
>                         onefs=yes
>                         recurse=yes
>                         sparse=yes
>                         #compression=GZIP
>                         #exclude=yes
>                         RegexDir = "^/home/[^/]+/Maildir"
>                          }
> 
>                 Options {
>                         #WildDir = "/home/*"
>                         RegexDir = ".*"                     
>                         exclude = yes
>                         }
> 
>         File = /home
>                 }
> 
>         Exclude {
>                 File = lost+found
>                 File = /home/oldhomes
>                 File = /home/spam
>                 File = /home/Maildirs
>                 }
> }

This is a common problem.  Bacula needs to look inside /home/$user to find
/home/$user/Maildir, but your second Options clause makes it stop too soon.

You must include /home/$user, but nothing inside them except
/home/$user/Maildir.

Something like this:

FileSet {
        Name = "maildirs"
        Include {
                Options {
                        signature=MD5
                        onefs=yes
                        recurse=yes
                        sparse=yes
                        #compression=GZIP
                        RegexDir = "^/home/[^/]+$"
                        WildDir = "/home/*/Maildir"
                        Wild = "/home/*/Maildir/*"
                         }

                Options {
                        Wild = "/home/*"
                        exclude = yes
                        }

                File = /home
                }

        Exclude {
                File = lost+found
                File = /home/oldhomes
                File = /home/spam
                File = /home/Maildirs
                }
}

__Martin

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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>