I am guessing the following is a permissions problem. Anyone know what the perms are supposed to be for each directory?
PRE-REQUISITES
sudo apt-get upgrade && sudo apt-get update
sudo apt-get install g++ libpq-dev make
===
COMPILE
a. Untar and cd to installation directory
b. Put this in a bacula_conf file and make it executable "sudo chmod 744 bacula_conf"
#!/bin/sh
CFLAGS="-g -Wall" \
./configure \
--sbindir=/usr/local/sbin \
--sysconfdir=/usr/local/etc \
--mandir=/usr/local/sbin \
--enable-smartalloc \
--enable-bwx-console \
--enable-tray-monitor \
--with-pid-dir=/usr/local/bacula/working \
--with-subsys-dir=/usr/local/bacula/working \
--with-postgresql \
--with-working-dir=/usr/local/bacula/working \
exit 0
***NOTE: BAT is not enabled - it requires qt to be installed
c. Still in the installation directory: sudo ./bacula_conf && sudo make && sudo make install clean
===
UTF-8 to SQL_ASCII
sudo pg_dropcluster --stop 8.4 main
sudo pg_createcluster --start -e SQL_ASCII 8.4 main
===
DATABASE
sudo chown postgres:postgres /usr/local/etc/*
sudo su - postgres
As user postgres: createuser bacula
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) n
As user postgres: /usr/local/etc/create_bacula_database
As user postgres: /usr/local/etc/make_bacula_tables
As user postgres: /usr/local/etc/grant_bacula_privileges
$ psql bacula
bacula=# alter user bacula with password 'bacula';
\q
exit
===
FIRE_IT_UP
a. Add password: vi /usr/local/etc/bacula-dir.conf and add password 'bacula' to dbpassword variable
b. From anywhere: sudo bacula start
c. Check status: sudo bacula status -of dir, sd and pd processes
- if the config or install does not go well, one or more process will die