[bareos-users] Consolidate job for one client

2020-02-24 Thread Mariusz Sitarz
hello,

do you know any way how to run Consolidate job for specified client?

I want to have strict control when which client should run consolidation 
job, 

I have such job:

Job {
 Name = "ConsolidateJob"
 Pool = storage-35-Incremental
  Type = Consolidate
  Messages = Standard
  Priority = 10
  Write Bootstrap = "/var/lib/bareos/%c.bsr"
  Client = "storage-35-fd"
  FileSet = "storageX"
  Schedule = "Consolidate"
  Accurate = yes
  Storage = "storage-35File"
  Max Full Consolidations = 1
}

but even i choose client, pool and storage, consolidation is running for 
all clients in bareos-dir at once. 

Is any possibility to run Consolidate only for only  "storage-35-fd"? Maybe 
it is possible to run for one client by running job via bconsole somehow ?

-- 
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/3bba1965-640f-4f24-95be-21f383c9d364%40googlegroups.com.


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 get a warning of an unmounted shared folder (without any files or folders)?

2020-02-24 Thread 'DUCARROZ Birgit' via bareos-users

Thank you a lot, I will read this doc and try to figure out how to do it.

Kind regards,
Birgit

On 24/02/20 16:10, Spadajspadaj wrote:
Bareos is very flexible in terms of preparing a job. You can run a 
"pre-job" script. It can be run either on server's side or client's 
side. I suppose you'd prefer client's side in this case.


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



And you can fail the backup job if the script returns an error (non-zero 
exit status).



Best regards,

MK

On 24.02.2020 15:52, 'DUCARROZ Birgit' via bareos-users wrote:

Hi list,

I try to figure out how to configure bareos to send me a warning or 
error message in case of an empty directory.


I.ex. I mount a share from an external server on the bareos server 
which I will backup. Let's say this mount in now suddenly unmounted.


Bareos will backup now an empty folder and returns an ok.

Is it possible to make it detect that this folder is empty and to 
return a warning?


Thank you so much for any help.

Kind regards,
Birgit





--
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/a7426d48-b930-696c-ab26-3412855f%40unifr.ch.


Re: [bareos-users] How to get a warning of an unmounted shared folder (without any files or folders)?

2020-02-24 Thread Spadajspadaj
Bareos is very flexible in terms of preparing a job. You can run a 
"pre-job" script. It can be run either on server's side or client's 
side. I suppose you'd prefer client's side in this case.


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

And you can fail the backup job if the script returns an error (non-zero 
exit status).



Best regards,

MK

On 24.02.2020 15:52, 'DUCARROZ Birgit' via bareos-users wrote:

Hi list,

I try to figure out how to configure bareos to send me a warning or 
error message in case of an empty directory.


I.ex. I mount a share from an external server on the bareos server 
which I will backup. Let's say this mount in now suddenly unmounted.


Bareos will backup now an empty folder and returns an ok.

Is it possible to make it detect that this folder is empty and to 
return a warning?


Thank you so much for any help.

Kind regards,
Birgit



--
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/0e63b1a4-2398-fce0-419e-7b8219a90b94%40gmail.com.


[bareos-users] Re: I can enter the web interface with any login and password!

2020-02-24 Thread Pasto


El viernes, 21 de febrero de 2020, 22:38:58 (UTC+1), khvalera escribió:
>
> I can enter the web interface with any login and password!
>
> Is it something I have not configured correctly, or is it like that for 
> everyone?
>
> 1) sudo apt-get install bareos-webui 

2) sudo systemctl restart apache2

3) bconsole

4)configure add console name=yourusername password=yourpassword 
profile=webui-admin

5)/etc/bareos/bareos-dir.d/console/admin.conf

6) delete admin.conf and rename mit mv admin.conf.bak admin.conf

7) sudo systemctl restart apache2 bareos-dir bareos-sd bareos-fd
7admins.cof

 

-- 
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/52fa4f86-4d08-4a42-91ff-a89348074e42%40googlegroups.com.