Bacula-users

Re: [Bacula-users] need a litle help with an exclude

2008-08-12 21:52:35
Subject: Re: [Bacula-users] need a litle help with an exclude
From: "Ben Beuchler" <insyte AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 12 Aug 2008 20:52:28 -0500
> I'm trying to backup all files in a certain folder (and its subfolders),
> UNLESS the name of the file begins with dovecot*
> How do I exclude these? In the folder is easy, of course, but how do I
> do all the (unknown number of) layers of sub-dirs as well?

The "wilddir" option is what you want, I believe.  If you want to get
fancy, you could
also use "regexdir".

The Bacula wildcards don't seem to necessarily follow the standard
shell globbing rules.  Check it out:

insyte@graviton:~$ cat snort.lst
/path/to/stuff/dovecot49/bleep
/this/path/should/not/match/file.txt
/path/to/dovecot1000/snort
/dovecot_was_here/tmp/lordy_lordy.asc
/no/match/here/please
insyte@graviton:~$ bwild -f snort.lst
Enter a wild-card: *dovecot*
    1: /path/to/stuff/dovecot49/bleep
    3: /path/to/dovecot1000/snort
    4: /dovecot_was_here/tmp/lordy_lordy.asc
Enter a wild-card:
insyte@graviton:~$

-Ben

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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>