Bacula-users

Re: [Bacula-users] Bacula ClientRunBeforeJob

2009-10-21 04:47:27
Subject: Re: [Bacula-users] Bacula ClientRunBeforeJob
From: Christian Gaul <christian.gaul AT otop DOT de>
To: Bacula-users AT lists.sourceforge DOT net
Date: Wed, 21 Oct 2009 10:44:01 +0200
Robert Backhaus schrieb:
> Hello all,
>
> i want to backup mysql binlog files "incremetally". We wrote a script
> (binlog-backup), which flush the logs and writes the backupfiles to 
> restore.info.
>
> <config> 
>
> ClientRunBeforeJob= "/usr/local/bin/binlog-backup"
>  
> Include {
>   Options { signature = SHA1 }
>   File = "\\</data/mysql-binlog/restore.info"
> }
>
> </config>
>
> Now i have the effect: the bacula job reads restore.info before running the
> script. the result is: i backup the files a job later. An additional cronjob 
> on
> the client, i want to avoid. Currently my approach is to schedule 2 jobs: 
> with 
> ClientRunBeforeJob to create the filelist and backup a zero directory and a
> second (5 min later )to backup the files from restore.info. 
>
> 1) Is there a way to configure bacula, to do the Clientrunbeforjob and than 
> reads
> the filelist?
>
> 2) Is there a way to pass paramtere/variables (files to backup)  to bacula
>
> 3) Any other hints?
>
> Robert
>   
the runbefore script should not be returning immediately, what happens
if you run /usr/local/bin/binlog-backup manually? do you get right back
to the shell or does it take a while to write the data to restore.info?

if the job returns right away then there is nothing bacula can do, you
have to fix your script to actually finish processing before returning
(synchronous instead of asynchronous). For me bacula waits until the
runbefore script(s) have finished before saving data.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
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>