Bacula-users

Re: [Bacula-users] Comments in generated file lists?

2008-07-17 15:38:15
Subject: Re: [Bacula-users] Comments in generated file lists?
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Thu, 17 Jul 2008 20:37:51 +0100
>>>>> On Thu, 17 Jul 2008 11:59:34 -0400, Patrick LeBoutillier said:
> 
> Hi,
> 
> We use the following construct to generate the files we want Bacula to
> backup for a specific job:
> 
> FileSet {
>         Name = "archiver"
>         Include {
>                 Options {
>                         signature = MD5
>                 }
>                 File = "\\|sh -c '/root/bin/bacula-filelist.sh %v %i'"
>         }
> }
> 
> We would like to be able to include comments in the generated file
> list because we also save it to a file for processing.
> We tried adding a '#' at the beginning of a line but Bacula complains:
> 
>   Could not stat #ARCHIVE /home/abc/20080311_dIU4pboPl8JWiGauZNrN0V40rJ45egiW
> 
> Is there a supported comment marker for generated file lists?

No, you'll have to filter them within the script, e.g. with grep -v.

__Martin

-------------------------------------------------------------------------
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