Re: [Bacula-users] Change ClientRunBeforeJob script based on scheduler
2017-05-24 06:53:55
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 Huttel Data: qua, 24 de mai de 2017 7:40 AM Para: 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
Job { Name = "Backup_XXX" ... RunBeforeJob = "/etc/bacula/scripts/backup_database.sh %l" # %l = Job Level
... }
------------------------------------------------------------------------------ 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
------------------------------------------------------------------------------
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
|