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 config structure you have under /etc/bareos on linux 
> or /usr/local/etc/bareos under BSD. Just look for the job definitions that 
> you have there.
>
> --
> Andrei
>
> On Thursday, 20 February 2020 16:19:11 UTC+1, Goncalo Sousa wrote:
>>
>> 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 on 
>>> the client you are backing up. If "Runs On Client = No" then the script 
>>> needs to be present on the director to run.
>>>
>>> You can also use 
>>> https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_ClientRunAfterJob
>>>  
>>> which is the same as a "RunAfterJob" with "Runs On Client = Yes".
>>>
>>> --
>>> Andrei
>>>
>>> On Thursday, 20 February 2020 15:26:15 UTC+1, Goncalo Sousa wrote:

 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 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 bareos...@googlegroups.com. 
> > 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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/fea7f9ef-7ad7-45dc-8c4f-6343ee74d2c5%40googlegroups.com.


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 that 
you have there.

--
Andrei

On Thursday, 20 February 2020 16:19:11 UTC+1, Goncalo Sousa wrote:
>
> 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 on 
>> the client you are backing up. If "Runs On Client = No" then the script 
>> needs to be present on the director to run.
>>
>> You can also use 
>> https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_ClientRunAfterJob
>>  
>> which is the same as a "RunAfterJob" with "Runs On Client = Yes".
>>
>> --
>> Andrei
>>
>> On Thursday, 20 February 2020 15:26:15 UTC+1, Goncalo Sousa wrote:
>>>
>>> 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 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 bareos...@googlegroups.com. 
 > 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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/8015796a-84ae-4d23-9cb3-125897365d5f%40googlegroups.com.


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 on 
> the client you are backing up. If "Runs On Client = No" then the script 
> needs to be present on the director to run.
>
> You can also use 
> https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_ClientRunAfterJob
>  
> which is the same as a "RunAfterJob" with "Runs On Client = Yes".
>
> --
> Andrei
>
> On Thursday, 20 February 2020 15:26:15 UTC+1, Goncalo Sousa wrote:
>>
>> 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 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 bareos...@googlegroups.com. 
>>> > 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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/8faa7b06-e8b3-42cf-8237-b4476cd67be6%40googlegroups.com.


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.

You can also use 
https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_ClientRunAfterJob
 
which is the same as a "RunAfterJob" with "Runs On Client = Yes".

--
Andrei

On Thursday, 20 February 2020 15:26:15 UTC+1, Goncalo Sousa wrote:
>
> 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 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 bareos...@googlegroups.com. 
>> > 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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/9654742c-c998-4d32-b40a-0baff2ee3e37%40googlegroups.com.


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 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 bareos...@googlegroups.com . 
> > 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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/7d7cd3e0-f25b-489e-a648-53fd34a439ae%40googlegroups.com.


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/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 bareos-users+unsubscr...@googlegroups.com.
> 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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/1CA41F4E-6DEF-495A-A38D-525A2D8D017F%40mlds-networks.com.


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