Installing Bacula on CentOS 6

George Rushby (http://www.how2centos.com/installing-bacula-on-centos-6/)

Installing Bacula on CentOS 6 with Webmin interface quick start guide. The assumption for this CentOS 6 tutorial is that you are running as root and have a basic understanding of the software required but if you follow this tutorial you should be able to complete the task successfully.

What is Bacula

Bacula is a set of Open Source, enterprise ready, computer programs that permit you (or the system administrator) to manage backup, recovery, and verification of computer data across a network of computers of different kinds. Bacula is relatively easy to use and efficient, while offering many advanced storage management features that make it easy to find and recover lost or damaged files. In technical terms, it is an Open Source, enterprise ready, network based backup program.

Bacula Website: http://www.bacula.org/en/

Install the EPEL x86_64 YUM Repository

# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

Disable SELinux

This is disabled at your own risk! We dont recommend it but it makes the installtion easier.

# vi /etc/sysconfig/selinux

Change the following: SELINUX=enforcing to SELINUX=disabled

Install the Webmin YUM Repository

# cat > /etc/yum.repos.d/webmin.repo << EOF
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
EOF

 

Add the GPG Key and Install Webmin

 

# rpm --import http://www.webmin.com/jcameron-key.asc

# yum install webmin

Install MySQL and Bacula

# yum install mysql-devel mysql-server
# yum install bacula-storage-mysql bacula-docs
# yum install bacula-director-mysql bacula-console
# yum install bacula-client bacula-traymonitor

Start and Configure MySQL for Bacula

# service mysqld start
# chkconfig mysqld on

Change the MySQL root password if you have a fresh install of MySQL

# mysqladmin -u root password ‘new-password’

Now run the scripts

# /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
# /usr/libexec/bacula/grant_bacula_privileges -u root -p

Edit the default config files

Change Director password, change address and password on Client, change Storage Address and Password, change Console password:

# vi /etc/bacula/bacula-dir.conf

Change bacula-fd password, change bacula-mon password:

# vi /etc/bacula/bacula-fd.conf

Change bacula-dir password, change bacula-mon password, change Device {Archive Device to /backup

# vi /etc/bacula/bacula-sd.conf

Change Address and Password:

# vi /etc/bacula/bconsole.conf

Change Address Password and additionally change Director name to localhost

# vi /etc/bacula/tray-monitor.conf

Create the backup folder

# mkdir /backup
# chown bacula /backup

Set the MySQL password for user bacula

# mysql -u root -p
Enter Password:

mysql> UPDATE mysql.user SET password=PASSWORD (‘somepassword’)
mysql> WHERE user=’bacula’;
mysql> UPDATE mysql.user SET password=PASSWORD (‘somepassword’) WHERE user=’bacula’;
mysql> FLUSH PRIVILEGES;
mysql> quit

Start the Bacula Services

# chkconfig bacula-dir on
# chkconfig bacula-fd on
# chkconfig bacula-sd on

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

Now use your web browser and go to the host IP address where you installed Bacula

http://10.0.0.20:10000

This will take you to the Webmin. Login using root and your password. You will find the Bacula module on the left under System


Read more: http://www.how2centos.com/installing-bacula-on-centos-6/#ixzz22wvpmy6K