howto install and configure bacula backup and bacula-web on fedora 15 using yum


Install all of the following packages. Dependencies are listed inside {} and will install automatically.

yum install mysql-devel
{mysql}
yum install myql-server
yum install bacula-storage-mysql
{bacula-common}
{bacula-storage-common}
{fedora-usermgmt}
{fedora-usermgmt-core}
{fedora-usermgmt-default}
{fedora-usermgmt-shadow-utils}
yum install bacula-docs
yum install bacula-director-mysql
{bacula-director-common}
yum install bacula-console-gnome ( optional, if you install bacula on fedora core not needed )
yum install bacula-console
yum install bacula-client
yum install bacula-traymonitor ( optional, if you install bacula on fedora core not needed )

Configure the MySQL for Bacula

Start the mysqld service (service mysqld start)

Set MySQL to start on reboot (chkconfig mysqld on)

change the root password to mysql (mysqladmin -u root password ‘new-password’)

(alternately) /usr/bin/mysql_secure_installation will change password, and remove default test databases and anonymous user DO NOT REMOVE login REMOTELY YET.

/usr/libexec/bacula/grant_mysql_privileges -u root -p
/usr/libexec/bacula/create_mysql_database -u root -p
/usr/libexec/bacula/make_mysql_tables -u root -p

if you have error with /usr/libexec/bacula/make_mysql_tables,  change this  `MaxValue` INTEGER DEFAULT 0, to \ `MaxValue\` INTEGER DEFAULT 0,

Vi /usr/libexec/bacula/make_mysql_tables


/usr/libexec/bacula/grant_bacula_privileges -u root -p

!!!Edit config files and change the default passwords or the services will not start!!!


/etc/bacula/bacula-dir.conf   (change Director password, change address and password on Client, change Storage Address and Password, change Console password)

/etc/bacula/bacula-fd.conf   (Change bacula-fd password, change bacula-mon password)
/etc/bacula/bacula-sd.conf    (change bacula-dir password, change bacula-mon password, change Device {Archive Device to /backup)

/etc/bacula/bconsole.conf     (change Address and Password)
/etc/bacula/gnome-console.conf  (change Address and Password)
/etc/bacula/tray-monitor.conf  (change Address Password and additionally change Director name to localhost)

Create the backup folder (mkdir /backup)

Start the services


service bacula-dir start
service bacula-fd start
service bacula-sd start

If you wont to instal bacula-web (reporting trough web site) do next:

first if you not disable selinux on initial install linux distribution do this now  in /etc/selinux/config  change

SELINUX=enforcing to SELINUX=disabled

then:

# yum install httpd
# chkconfig httpd on
# service httpd start

RedHat/Centos
# cd /var/www/html

# mkdir -v bacula-web
# cd bacula-web

# yum install php-pear-DB
# service httpd restart

# wget latest bacula-web version

# yum install php php-gd php-gettext php-mysql   ( this if you using mysql)

# yum install php-pear-DB
# service httpd restart

# tar -xzf latest-bacula-web-version.tar.gz -C /var/www/html/bacula-web
# chown -Rv apache:apache ./bacula-web
# chmod -Rv u=rx,g=rx,o=rx ./bacula-web

# chmod -v ug+w ./bacula-web/templates_c


dpejic has written 85 articles

One thought on “howto install and configure bacula backup and bacula-web on fedora 15 using yum

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>