Bacula 5.0.1 on Ubuntu 9.10 server - Mar 2010 --------------------------------------------- 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
sudo vi /etc/postgresql/pg_hba.conf change line "local all all ident" to "local all all md5"
sudo service postgresql-8.4 restart
===
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 ===
TEST sudo /usr/local/sbin/bacula-dir -t -c /usr/local/etc/bacula-dir.conf sudo /usr/local/sbin/bacula-fd -t -c /usr/local/etc/bacula-fd.conf sudo /usr/local/sbin/bacula-sd -t -c /usr/local/etc/bacula-sd.conf
sudo /usr/local/sbin/bconsole -t -c /usr/local/etc/bconsole.conf sudo /usr/local/sbin/bwx-console -t -c /usr/local/etc/bwx-console.conf sudo /usr/local/sbin/bat -t -c /usr/local/etc/bat.conf
sudo su <normal user> -c "./bacula-tray-monitor -t -c tray-monitor.conf" ===
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev _______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|