Hello,
Thanks for your comments.
I think the best suggestion that I have seen for the name is (at least in the
current context):
Exclude Dirs Containing = .no_backup
That seems to me to be a very good name.
Concerning the placement of the directive: I think it is worth examining if we
can easily move it to the Exclude { } section. In that case, the directive
name could be
Exclude {
Dirs Containing = .no_backup
...
}
Best regards,
Kern
On Saturday 04 October 2008 14:51:02 Marc Schiffbauer wrote:
> * Dan Langille schrieb am 03.10.08 um 21:15 Uhr:
> > I see what you mean. The directive is: Ignore Dir = <filename>
> >
> > So at a minimum, it should be Ignore Dir File = <filename>
> >
> > But having Dir and File together... no.
>
> ACK
>
> > Taking the example at:
> > http://www.bacula.org/manuals/en/concepts/concepts/New_Features.html
> >
> > # List of files to be backed up
> > FileSet {
> > Name = "MyFileSet"
> > Include {
> > Options {
> > signature = MD5
> > }
> > File = /home
> > IgnoreDir = .excludeme
> > }
> > }
> >
> > Let's add an exclude option:
> >
> > # List of files to be backed up
> > FileSet {
> > Name = "MyFileSet"
> > Include {
> > Options {
> > signature = MD5
> > }
> > File = /home
> > Exclude Flag File = .no_backup
> > }
> >
> > Exclude {
> > File = /proc
> > File = /tmp
> > File = /.journal
> > File = /.fsck
> > }
> > }
> > }
> >
> > Discussion commences from here. :)
>
> Maybe "Control File" instead of "Flag File" is better?
>
> I am not 100% sure which is better, I prefer "Control File" ATM
>
> How about placing this directive into the Exclude{} section?
> Wouldn't that make more sense anyway?
>
> Maybe like that:
>
> # List of files to be backed up
> FileSet {
> Name = "MyFileSet"
> Include {
> Options {
> signature = MD5
> }
> File = /home
> }
>
> Exclude {
> File = /proc
> File = /tmp
> File = /.journal
> File = /.fsck
> Control File = .NO_BACKUP
> }
> }
>
> I do not know how much effort it would take to change it so that
> this directive could be used just like WildDir or WildFile for example.
>
> It could be used for inclusion too then:
>
> With this fileset only every directory containing such a control
> file would be backed up.
>
> FileSet {
> Name = "MyFileSet"
> Include {
> Options {
> Control File = .DO_BACKUP
> }
> Options {
> Exclude = yes
> RegexFile = ".*"
> }
> File = /home
> }
> }
>
> Or even a combination of the two examples would be feasible:
>
> # List of files to be backed up
> FileSet {
> Name = "MyFileSet"
> Include {
> Options {
> signature = MD5
> Control File = .DO_BACKUP
> }
> File = /home
> }
>
> Exclude {
> File = /proc
> File = /tmp
> File = /.journal
> File = /.fsck
> Control File = .NO_BACKUP
> }
> }
>
> Comments?
>
> -Marc
-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel