Hi,
18.07.2008 13:31, Martin Simmons wrote:
>>>>>> On Thu, 17 Jul 2008 22:38:52 +0200, Arno Lehmann said:
>> Hi,
>>
>> 17.07.2008 21:37, Martin Simmons wrote:
>>>>>>>> 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.
>> Or, alternatively, let your script create a list of complete File=
>> entries... the include syntax works everywhere, so you can generate
>> output like
>>
>> # home directories
>> File = /home/
>> # data
>> File = /var/
>>
>> and so on.
>
> That will only work at config-loading time on the Director machine though, so
> not with dynamic \| file lists on the client.
As far as I know - and can understand from reading the code - "|"
works whenever a configuration file is read or included.
I haven't tried it (at least I don't find any notes about it), but I
believe including program output is always possible where you can
include plain text.
Arno
> __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
>
--
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de
-------------------------------------------------------------------------
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
|