Bacula-users

Re: [Bacula-users] bconsole cannot connect director

2010-01-28 13:12:23
Subject: Re: [Bacula-users] bconsole cannot connect director
From: mehma sarja <mehmasarja AT gmail DOT com>
To: le dahut <le.dahut AT laposte DOT net>
Date: Thu, 28 Jan 2010 09:41:59 -0800

POSTGRESQL
change password to 'postgres'
test@bacula:~$  sudo -u postgres psql postgres
postgres=#  \password postgres
---
edited create_postgresql_database to add:
CREATE DATABASE ${db_name} $ENCODING TEMPLATE template0;
reference:  http://osdir.com/ml/debian-bugs-dist/2009-09/msg03836.html
---
test@bacula:/usr/local/etc$ sudo ./create_postgresql_database -U postgres
test@bacula:/usr/local/etc$ sudo ./make_postgresql_tables -U postgres
test@bacula:/usr/local/etc$ sudo ./grant_postgresql_privileges -U postgres
test@bacula:/usr/local/etc$ sudo /etc/init.d/postgresql-8.4 restart
===
COMPILE BACULA
sudo apt-get install libpq-dev
NOTE: I am assuming you did a sudo apt-get install gcc as well
---
sudo mkdir -p /var/db/bacula/working
NOTE:  make sure
a.  the config files are in /usr/local/etc
b.  there is a /var/run directory
c.  postgresql is at /usr/local/pgsql84
---
CFLAGS="-g -O2 -Wall" \
          ./configure \
            --sbindir=/usr/local/sbin \
            --sysconfdir=/usr/local/etc \
            --with-pid-dir=/var/run \
            --with-subsys-dir=/var/db/bacula/working \
            --enable-smartalloc \
            --enable-batch-insert \
            --disable-libtool \
            --with-postgresql=/usr/local/pgsql84 \
            --with-db-user=postgres \
            --with-working-dir=/var/db/bacula/working \
            --with-dump-email=mehmasarja AT gmail DOT com \
            --with-job-email=mehmasarja AT gmail DOT com \
            --with-smtp-host=smtp.gmail.com
NOTE:  I put these commands in a file ... call it bac_conf and made it executable sudo chmod 744 bac_conf and then executed it via sudo ./bac_conf --> you should be in the directory with the "configure" file in it.
===
SCRIPTS
Add startup/stop scripts on 'bacula'
cd /etc/init.d && sudo ln -s /usr/local/etc/bacula && sudo update-rc.d bacula defaults && sudo reboot
===


On Thu, Jan 28, 2010 at 6:28 AM, le dahut <le.dahut AT laposte DOT net> wrote:
I have exactly the same :
* vmware ESXi
* Intel 64bit processor
* bacula 3.0.3 from official sources, without any patch

but I'm running Hardy/8.04.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>