[mylvmbackup] Re: Using mylvmbackup with bacula?

Hi Patrick,

On 05/27/2008 03:58 PM, Patrick Hahn wrote:

> I wanted to do the same thing, but I did it the reverse of what you're
> suggesting, sort of.
> 
> This patch simply checks for /etc/mylvmbackup/$hookname, if it
> exists and is runnable, run it and log an error if it failed to run or
> returned nonzero, continuing on its merry way regardless. If no hooks
> are found normal operation is not affected. I moved the default conf
> location to its own directory so as not to pollute /etc/.

Thanks a lot for your contribution! It took me a while, but I now applied
it to my source tree. I slightly modified it and changed the default location
of the hooks from /etc/mylvmbackup to /usr/share/mylvmbackup. The location can
be changed with the "--hooksdir" configuration option. The execution of all
hooks can be skipped by using "--skip-hooks".

It will be part of the upcoming 0.9 release, which I am currently preparing.
Thanks again!

Bye,
        LenZ
-- 
------------------------------------------------------------------
 Lenz Grimmer <lenz@xxxxxxxxxxx>                             -o)
 [ICQ: 160767607 | Jabber: LenZGr@xxxxxxxxxx]                /\\
 http://www.lenzg.org/                                       V_V

Other related posts: