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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/1a4a733d-61f1-451c-8c1d-b3b49801ba19%40googlegroups.com.

Reply via email to