> On Feb 19, 2020, at 1:01 PM, Goncalo Sousa <[email protected]> wrote:
> 
> Hello guys,
> 
> I recently started working with BareOS. I want to know how do I run a script 
> before and after the job.
> 
> Thanks in advance

You are looking for Run Script in the Job directive

https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_RunScript

There are some shortcut versions also.  Often the catalog backup job that comes 
with Bareos out the box includes an example of this to run a script to dump the 
database.  Not sure if that’s still the case.  


> 
> -- 
> 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/eb230c50-6e9d-4e52-aa44-ac3d9c1c4dab%40googlegroups.com.

-- 
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/1CA41F4E-6DEF-495A-A38D-525A2D8D017F%40mlds-networks.com.

Reply via email to