Basically edit /etc/bareos/bareos-dir.d/job/server.conf and add 'ClientRunBeforeJob=/path/to/script/in/client' is this it?
segunda-feira, 9 de Março de 2020 às 12:26:02 UTC, Andrei Brezan escreveu: > > Just look at the documentation: > https://docs.bareos.org/Configuration/Director.html#job-resource > You can have Client Run Before Job and Client Run After Job. > > -- > Andrei > > On Monday, 9 March 2020 13:19:31 UTC+1, Goncalo Sousa wrote: >> >> And how do I set to execute the script on the client? >> >> For example: The script is located on the client and I want to execute it >> from it? >> >> sexta-feira, 6 de Março de 2020 às 16:32:46 UTC, Andrei Brezan escreveu: >>> >>> You need to put the script as the value: >>> >>> RunBeforeJob="/path/to/my/script" >>> >>> On Friday, 6 March 2020 16:52:26 UTC+1, Goncalo Sousa wrote: >>>> >>>> So as far as I know I add the option: RunAfterJob=yes and >>>> RunBeforeJob=yes in bareos-dir.d/job but how do I call the script? >>>> >>>> >>>> -- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/87d417ed-228f-4b8a-bdd5-4484922efb2c%40googlegroups.com.