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.
Regards,
Enviado do meu Telefone LG
------ Mensagem original------De: Wanderlei HuttelData: qua, 24 de mai de 2017 
7:40 AMPara: Carlo Filippetto;Cc:bacula-users;Assunto:Re: [Bacula-users] Change 
ClientRunBeforeJob script based onscheduler
Hello Carlo

In Bacula communiy is not possible yet  (maybe in Enterprise version only)
Probably in the Schedule you have more than one Level for this job.
You could adapt you script for receive a parameter like "Level" from Job
and in the script select the the Full or Incremental using the value of
parameter passed
Example:

Job {
  Name = "Backup_XXX"
  ...
  RunBeforeJob = "/etc/bacula/scripts/backup_database.sh %l"  # %l = Job
Level
  ...
}

Best Regards

*Wanderlei Hüttel*
http://www.huttel.com.br

2017-05-24 5:40 GMT-03:00 Carlo Filippetto <carlo.filippe...@gmail.com>:

> Hi all,
>
> I have Bacula 7.2.0 installed on Fedora 23.
> I need to change the beaviour of a ClientRunBeforeJob based on scheduler,
> this to create differential or full dump of a DB.
> how I can do this?
>
> I would like to make this feature trought bacula and not with a custom
> script.
>
>
>
> Thank you
>
>
> ---
> Carlo
>
> ------------------------------------------------------------
> ------------------
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to