I want to create a new blank database named NewDataBase.
And create_bareos_databases takes no arguments
How do I declare the name of the database to be created?
Thanks.
I could copy an old database structure. I have my reasons for wanting to use the script. I'm using multiple catalogs etc.
If another newbie is wondering, this short script worked for me:
#!/bin/bash
export db_name="MyNewDatabase"
./create_bareos_database
./make_bareos_tables
As one newbie to another, nice solution.
To Jorg above, unless I am missing something (likely), the reference you give is not relevant to 16.2, as the conf structure changed. I tried to work out the equivalent to no avail.
Could you provide an updated tip to adjust the db parms to allow the scripts to work? While Joe's script is a nice simple way to fix it, it's likely not what you guys had in mind.
--
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/ushJ5XC2mm8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bareos-users+unsubscribe@googlegroups.com.
To post to this group, send email to bareos...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Glad to know the catalog works.
Thanks again for the quick reply! We are aligned in our thinking :).
I don't really have trouble using the db setup script, and manually changing the env variable, but it looked like in pre-16.2 there was a way to set some conf with the new db name, and then the create database script would pick up this new db name from the conf and then create the db without having to manually change the env variable. If this was never the case then so be it. It's not a problem manually adjusting the env variable; once one knows to do so .... :).
We could pass the name as an argument to the script but it's good to know about the script.