Bacula-users

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

2017-05-26 16:37:48
Subject: Re: [Bacula-users] Change ClientRunBeforeJob script based on scheduler
From: Carlo Filippetto <carlo.filippetto AT gmail DOT com>
To: Wanderlei Huttel <wanderleihuttel AT gmail DOT com>
Date: Fri, 26 May 2017 22:36:25 +0200
it works!!!
  ClientRunBeforeJob = "\"C:\\Program Files\\Bacula\\scripts\\test\\bck-sql.bat\" %l"


Thank you

2017-05-24 12:35 GMT+02:00 Wanderlei Huttel <wanderleihuttel AT gmail DOT com>:
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

2017-05-24 5:40 GMT-03:00 Carlo Filippetto <carlo.filippetto AT gmail DOT 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
[email protected].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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

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