Adding / Installing a windows client - v23 vs documentation

116 views
Skip to first unread message

Jason Chard

unread,
Dec 28, 2023, 11:12:06 PM12/28/23
to bareos-users
Hey Team,
I'm new to Bareos, and the documentation either doesn't align or my brain needs to bend more to see how the design team was thinking.
I've been trying for over a week to add a client. the folder structures on windows are not intuitive and seems to have director and client in multiple folders so it is hard to work out what is what and where is the actual configuration held.

I've got a windows client installed, but i don't know how to collect the secret to add it to the director.
Additionally , the documentation to add a client seems to be misaligned with v23?

'add a client'

AddClient.jpg

Is there some sort of structure where i can see, oh the client or fd config is here, i just need to copy that and insert it into the director like this. Simplified?
Being new to Bareos with no handover seems like an impossibility as the documentation is not for someone that doesn't already know, more for someone that just needs a refresher and is already trained in the Bareos ways.

I haven't even got to the adding a S3 bucket or having multiple businesses / devices yet. I don't know if it is suitable for this. Anyone that can throw me a snippet would be greatly appreciated. Also, giving me a URL will not help, i've been to them all and they are all not in the current programing mindset that i have. Show me the Bareos Mind Bending ways.
 

Bruno Friedmann (bruno-at-bareos)

unread,
Dec 29, 2023, 3:37:50 AM12/29/23
to bareos-users
Maybe this will just create the "oooh moment"

Here you have client resource defined in the bareos-dir (director)
/etc/bareos/bareos-dir.d/client/client2-fd.conf
Each of them will contain a passphrase that you will report to
/etc/bareos/bareos-fd.d/director/director-dir.conf

So I can just confirm that starting with no knowledge and no ideas how the product work can a be challenge, but once it is setup usually work like a charm ;-)
We often see that buying consulting and training on the beginning can boost the time to production. 

Jörg Steffens

unread,
Dec 29, 2023, 5:22:42 AM12/29/23
to bareos...@googlegroups.com
On 29.12.23 at 05:12 wrote Jason Chard:
> Hey Team,
> I'm new to Bareos, and the documentation either doesn't align or my
> brain needs to bend more to see how the design team was thinking.
> I've been trying for over a week to add a client. the folder structures
> on windows are not intuitive and seems to have director and client in
> multiple folders so it is hard to work out what is what and where is the
> actual configuration held.
>
> I've got a windows client installed, but i don't know how to collect the
> secret to add it to the director.
> Additionally , the documentation to add a client seems to be misaligned
> with v23?
>
> https://docs.bareos.org/IntroductionAndTutorial/Tutorial.html#id25
> 'add a client'
>
> AddClient.jpg

A look at this image first confuses me, but later on, I think I
understood, where the trouble comes from.
You have used the bconsole in the bareos-webui?
The admin user in the webui does not have the permission to run the
configure command. You may have seen this in its profile ACL.

When the documentation speaks about bconsole, it means the command line
bconsole, running on (Linux) shell.
Please rerun the configure command there.
Of course, it is also possible to run the configure command using the
bareos-webui console interface, by changing the ACLs. However, the webui
console also have other limitation, so I recommend to execute the
bconsole command on a shell (as root, so it has full permission).

Regards,
Jörg

--
Jörg Steffens joerg.s...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 630693-91
https://www.bareos.com Fax: +49 221 630693-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz


Jason Chard

unread,
Jan 1, 2024, 11:00:35 PMJan 1
to bareos-users
Hi Bruno and Jörg ,

First let me say thank you for taking the time to ready and reply, also happy new year!
i have the two results / questions.
For Bruno, not quiet the Aha moment, in the picture attached i have a putty to the director and cmd to the windows PC. The Windows PC does not align to any directories but i tried to find.

win-dir.jpg

With Jörg, Yes i was using the bconsole, i thought that was the purpose. I dropped to a putty window and it did perform the command. Now i'm guessing i need to grab a file and drop it to the Windows Client so that they marry, but where and what?

win-dir-2.jpg

also i've just put in a plain text password, should i convert the password to md5 or just type a better complicated password in this console?

Bruno Friedmann (bruno-at-bareos)

unread,
Jan 4, 2024, 10:35:02 AMJan 4
to bareos-users
Hi Jason, you're still seems to confuse director configuration on fd and client configuration on dir

On Windows /etc/bareos is replaced by %ProgramData%/bareos and the rest below is identical.

As mentioned into the documentation 
the configure add client create two 
This creates two resource configuration files:
  • /etc/bareos/bareos-dir.d/client/client2-fd.conf

  • /etc/bareos/bareos-dir-export/client/client2-fd/bareos-fd.d/director/bareos-dir.conf (assuming your director resource is named bareos-dir)

So you just have to transfert from the director /etc/bareos/bareos-dir-export/client/client2-fd/bareos-fd.d/director/bareos-dir.conf
%ProgramData%/bareos/bareos-fd.d/director/bareos-dir.conf

I've no other simple way to express the how to.
Reply all
Reply to author
Forward
0 new messages