Bacula-users

Re: [Bacula-users] Bacula ClientRunBeforeJob

2009-10-28 04:06:55
Subject: Re: [Bacula-users] Bacula ClientRunBeforeJob
From: Arno Lehmann <al AT its-lehmann DOT de>
To: Bacula-users AT lists.sourceforge DOT net
Date: Wed, 28 Oct 2009 09:02:02 +0100
Hi,

21.10.2009 08:42, Robert Backhaus wrote:
> 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?

None that I know. Might be a nice feature request.

> 2) Is there a way to pass paramtere/variables (files to backup)  to bacula

The way you do it is the "right" one, I think.

> 3) Any other hints?

Yes... the way I do this sort of thing is to prepare the backup in a 
script that also lists the files to back up. Essentially the job 
preparation is moved from the Job resource to the FileSet one.

The file set is dynamically generated, not stored in a file, but the 
script just prints all the files that it prepared to stdout, and 
Bacula picks that up as its list of files to back up.

In the configuration, it looks a bit messy because you don't easily 
see that there is some work done before the backup can start, but it's 
working.

Cheers,

Arno

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

-- 
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de

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