Re: [bareos-users] How to run a script before and after the job?

2020-02-24 Thread Goncalo Sousa
But how can I evoke the script? quinta-feira, 20 de Fevereiro de 2020 às 15:54:06 UTC, Andrei Brezan escreveu: > > It's in your job definition, so wherever you define the job. It can be in > separate files under bareos-dir.d/job or have all the jobs in one file, it > really depends on the confi

Re: [bareos-users] How to run a script before and after the job?

2020-02-20 Thread Andrei Brezan
It's in your job definition, so wherever you define the job. It can be in separate files under bareos-dir.d/job or have all the jobs in one file, it really depends on the config structure you have under /etc/bareos on linux or /usr/local/etc/bareos under BSD. Just look for the job definitions th

Re: [bareos-users] How to run a script before and after the job?

2020-02-20 Thread Goncalo Sousa
Thanks. But in which file? quinta-feira, 20 de Fevereiro de 2020 às 14:37:41 UTC, Andrei Brezan escreveu: > > Hi Goncalo, > > If you use > https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_RunAfterJob > > and specify "Runs On Client = Yes" then the script needs to be present o

Re: [bareos-users] How to run a script before and after the job?

2020-02-20 Thread Andrei Brezan
Hi Goncalo, If you use https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_RunAfterJob and specify "Runs On Client = Yes" then the script needs to be present on the client you are backing up. If "Runs On Client = No" then the script needs to be present on the director to run. Y

Re: [bareos-users] How to run a script before and after the job?

2020-02-20 Thread Goncalo Sousa
Thanks for the awnser . But where do I apply/writte the Run after job and run before job? quarta-feira, 19 de Fevereiro de 2020 às 22:26:11 UTC, Brock Palen escreveu: > > > > > > > On Feb 19, 2020, at 1:01 PM, Goncalo Sousa > wrote: > > > > Hello guys, > > > > I recently started working with

Re: [bareos-users] How to run a script before and after the job?

2020-02-19 Thread Brock Palen
> On Feb 19, 2020, at 1:01 PM, Goncalo Sousa 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/Configuratio

[bareos-users] How to run a script before and after the job?

2020-02-19 Thread Goncalo Sousa
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 received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from