include directory structure

25 views
Skip to first unread message

Otto Brandstaetter

unread,
Mar 27, 2025, 3:12:38 PM3/27/25
to bareos-users
Hi,

my next challenge :-)
I have been using bareos on my servers for about 10 years or so and it seems that its time for a cleanup.
I tried to add a new client using bconsole, but I am getting the following:

It seems that the configuration is not adapted to the include directory structure. This means, that the configure command may not work as expected. Your configuration changes may not survive a reload/restart. failed to write config resource file

I tried to ask the internet, but could not find a suitable answer on how to change config.
I am still using the obviously old flat config-files.
Could anyone please point me in a direction where to find more information on how to switch to include directory structure? I think I missed something as I did not read release-notes :-(
Best regards and thanks in advance,
Otto

Spadajspadaj

unread,
Mar 28, 2025, 6:03:38 AM3/28/25
to bareos...@googlegroups.com
No knowing your current config I think the easiest way to go would be to "just spin up a clean VM, install bare packages from repo, and cut your existing config into pieces so that it matches the layout of the vanilla config".
--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bareos-users/af41de76-5291-4142-bf7b-949e34e9b775n%40googlegroups.com.

Sebastian Sura

unread,
Mar 28, 2025, 6:15:23 AM3/28/25
to bareos...@googlegroups.com

Hi Otto,

if you have a config file `<path>/bareos-dir.conf`, then you can simply create the directory `<path>/bareos-dir.d/legacy` and move that file in there.
If the configure still doesnt work, then you also need to create the directory `bareos-dir.d/client`.  For a full list of directories that you should create
you can look into the default config that gets shipped with the bareos director.

Kind Regards
Sebastian Sura

Am 27.03.25 um 20:12 schrieb Otto Brandstaetter:
--
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...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bareos-users/af41de76-5291-4142-bf7b-949e34e9b775n%40googlegroups.com.
-- 
 Sebastian Sura                  sebasti...@bareos.com
 Bareos GmbH & Co. KG            Phone: +49 221 630693-0
 https://www.bareos.com
 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

Jörg Steffens

unread,
Mar 28, 2025, 7:00:39 AM3/28/25
to bareos...@googlegroups.com
Hi Otto,

thank is all documented at
https://docs.bareos.org/Configuration/CustomizingTheConfiguration.html#subdirectory-configuration-scheme
including a migration script, that helps you to split your existing
configuration into separate files.
The "new" config scheme has been introduced 9 years ago, so your 10 year
old configuration might be one of the last using the old scheme ;-)

Regards,
Jörg

On 28.03.25 at 11:15 wrote Sebastian Sura:
>> <https://groups.google.com/d/msgid/bareos-users/af41de76-5291-4142-
>> bf7b-949e34e9b775n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> Sebastian Surasebas...@bareos.com
> Bareos GmbH & Co. KG Phone: +49 221 630693-0
> https://www.bareos.com
> 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
>
> --
> 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...@googlegroups.com <mailto:bareos-
> users+un...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/bareos-
> users/91b54e2e-917c-47d8-858a-6c4c06f1984c%40bareos.com <https://
> groups.google.com/d/msgid/bareos-
> users/91b54e2e-917c-47d8-858a-6c4c06f1984c%40bareos.com?
> utm_medium=email&utm_source=footer>.


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

Otto Brandstaetter

unread,
Mar 28, 2025, 10:36:18 AM3/28/25
to bareos-users
Hi and thanks a lot!
The script did not work for me and I had no time for investigating. So I used the method Sebastian suggested and after some tweaking bareos runs again :-)
Just struggling a little bit with local filedaemon, but this is a different story...
Cheers,
Otto
Reply all
Reply to author
Forward
0 new messages