Is it possible to create subfolders in cofiguration?

46 views
Skip to first unread message

Leon Bartle

unread,
Jul 17, 2024, 2:35:41 AM7/17/24
to bareos-users
Heya!

Is it possible to create subfolders in cofiguration? 
So is 
  • bareos-dir.d/clients/group1/client1.conf
  • bareos-dir.d/clients/group1/client2.conf
  • bareos-dir.d/clients/group2/client3.conf
possible? Or does everything have to be in the "root" folder?
I wasn't able to find this in the documentation.

Kind Regards!

Spadajspadaj

unread,
Jul 17, 2024, 3:53:00 AM7/17/24
to bareos...@googlegroups.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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/b95a885c-1d00-41cd-905f-fce4298f811an%40googlegroups.com.

Bruno Friedmann (bruno-at-bareos)

unread,
Jul 17, 2024, 11:27:53 AM7/17/24
to bareos-users
besides the includes with the new layout there normally no needs as it is globbing everything under the daemon.

so bareos-dir.d/clients/group*/*.conf should be picked by the director.
take care of the owner and rights

you should be able to check my assert by running the bareos-dir -u bareos -g bareos -t -d100 

Message has been deleted
Message has been deleted

Leon Bartle

unread,
Jul 29, 2024, 6:08:35 AM7/29/24
to bareos-users
Thanks for the tips!

It works with @/etc/bareos/bareos-dir.d/fileset/coes/*.conf in a separate file to enable globbing. 

But removing the file while still having the files in fileset/coes/.... it does not work. 

The files are owned by bareos:bareos with 777 permissions for testing purposes. So for some reasong the automatic globbing does not work. Maybe this globbing only works for clients and not filesets? Any ideas why?

Leon Bartle

unread,
Jul 29, 2024, 6:19:06 AM7/29/24
to Bruno Friedmann (bruno-at-bareos), bareos-users
For some reason, the google groups interface eats my message. :(

Thanks for the tips!

It works by creating a file with the contents @/etc/bareos/bareos-dir.d/fileset/coes/*.conf and all filesets in the coes folder are included. 

If I remove the file, it does not work, even though all files and folders have bareos:bareos owner and 777 permissions for testing purposes. 

Maybe the globbing only works for clients, not filesets? Any idea why this could be?

You received this message because you are subscribed to a topic in the Google Groups "bareos-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bareos-users/QHuyEaDvu1U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/d419952f-64b8-4d25-990e-44a5defd881en%40googlegroups.com.

Bruno Friedmann (bruno-at-bareos)

unread,
Jul 29, 2024, 7:39:25 AM7/29/24
to bareos-users
Hi Leon,

I misread your goal in first place, by default bareos daemon will only goes for one sub dir so bareos-dir.d/client/*.conf will work in your case.
otherwise you can still place a configuration file with a call to @
Reply all
Reply to author
Forward
0 new messages