Bacula-users

Re: [Bacula-users] Change ClientRunBeforeJob script based on scheduler

2017-05-26 15:33:14
Subject: Re: [Bacula-users] Change ClientRunBeforeJob script based on scheduler
From: Dan Langille <dan AT langille DOT org>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 26 May 2017 15:32:10 -0400
On May 24, 2017, at 6:52 AM, Heitor Faria <heitor AT bacula.com DOT br> wrote:

Hello, Wanderlei,

You are right. But I still think having a e.g. "ClientRunBeforeJobDiff", is a benefical new feature, since you might need to use different pre-backup binaries or scripts. Sometimes is not that practical to change them.
Maybe we can take a look on the code and propose a patch.
I suggest that given Bacula can already pass the data to whatever script you use, do this in your scripting language of choice. Then invoke what whatever binary you wish.

Just because we can expand the code does not mean we should. A simple shell script, for example, accomplishes this.

-- 
Dan Langille - BSDCan / PGCon
dan AT langille DOT org

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

ADSM.ORG Privacy and Data Security by https://kimlaw.us