Re: [Bacula-users] Comments in generated file lists?
2008-07-17 16:39:26
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.
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
|
|
|