Results 1 to 4 of 4

Thread: Bacula Database Setup

  1. #1
    Join Date
    Oct 2011
    Beans
    15

    Bacula Database Setup

    I'm trying to setup Bacula to do local backups to a second internal drive. I cannot get bacula-director to test the config file, it always complains that it cannot connect to the database. I see the bacula user on the database in pgadmin3, but it doesn't have rights to make databases. If this is NOT a bug, how do you setup the database? There isn't anything in the Ubuntu documentation about setting up the database, and in Bacula's documentation, there is a reference to a script, create_bacula_database, but I cannot find this script in Ubuntu.

  2. #2
    Join Date
    Feb 2008
    Location
    Pelican Bay Correctional
    Beans
    Hidden!

    Re: Bacula Database Setup

    Assuming you installed using the Software Center or whatever it is...
    Terminal>
    Code:
    sudo dpkg-reconfigure bacula-director-mysql
    If that fails, then the recipe I have is terminal >
    Code:
    myslq -uroot -p -e "create database bacula;"
    mysql -uroot -p -e "grant all privileges on bacula.* to bacula@localhost identified by 'ZWNlOGYyM2Zj';"
    Where "ZWNlOGYyM2Zj" would be your desired password.

    "Catalog {"
    in bacula-dir.conf should read something like
    Code:
    dbname = bacula; DB Address = "localhost"; user = bacula; password = "ZWNlOGYyM2Zj"
    and bounce bacula-dir service daemon.

    The script you cannot find probably is only included in source distributions of bacula.
    The apt package manager should have created the bacula db and created tables in it.

    HTH!
    I have 3 brain cells left, and two of them have restraining orders.
    Linux is just "DOS on 'steroids"

  3. #3
    Join Date
    Oct 2011
    Beans
    15

    Re: Bacula Database Setup

    Thanks! dpkg-reconfigure bacula-director-pgsql did the trick!

  4. #4
    Join Date
    Feb 2008
    Location
    Pelican Bay Correctional
    Beans
    Hidden!

    Re: Bacula Database Setup

    Rock on!
    I have 3 brain cells left, and two of them have restraining orders.
    Linux is just "DOS on 'steroids"

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •