It is very easy to install Bacula Enterprise since there are exclusive private repositories for most common distributions.

The following script will install the packages needed to deploy an initial backup server and Bweb interface. Change the variables according to your customer information.


# /root/
# Centos 7

# Change bellow according to your Bacula Enterprise welcome package exclusive URL
# E.g.: <xxxx> in<xxxx>/rpms/bin/8.6.5/rhel7-64/


# Change bellow according to the desired version. E.g.:


# This will set up your pernsonal BE Repository (don't change anything):
rpm --import
yum -y install wget epel-release
yum install -y yum-plugin-priorities

echo "
name = Red Hat Enterprise - Bacula-Enterprise
baseurl ="$secret_url"/rpms/bin/"$version"/rhel7-64/
enabled = 1
protect = 0
gpgcheck = 1

name = Red Hat Enterprise - BWeb Management Suite for BEE
baseurl ="$secret_url"/rpms/bweb/"$version"/rhel7-64/
enabled = 1
protect = 0
gpgcheck = 1

name = Red Hat Enterprise - Bacula Systems dag for BWeb
baseurl =
enabled = 1
protect = 0
gpgcheck = 1
priority = 1
" > /etc/yum.repos.d/Bacula-Enterprise.repo

# Installing PostgreSQL and Bacula Server Packages

yum install -y postgresql-server mt-st mtx
yum install -y bacula-enterprise-postgresql

# Starting services, setting autostart, creating Bacula DB, tables etc.

service postgresql initdb
chkconfig postgresql on
service postgresql restart
sudo -u postgres /opt/bacula/scripts/create_postgresql_database
sudo -u postgres /opt/bacula/scripts/make_postgresql_tables
sudo -u postgres /opt/bacula/scripts/grant_postgresql_privileges
service postgresql restart
usermod -aG tape bacula
usermod -aG disk bacula
/opt/bacula/scripts/bacula restart

# Create links in /usr/sbin for the Bacula binaries. This allows you to run the daemons and utilities without entering the /opt/bacula/bin directory
for i in `ls /opt/bacula/bin`; do
ln -s /opt/bacula/bin/$i /usr/sbin/$i;

# Bacula Server installed successfully. But now, why not install the exclusive bweb GUI interface?

# Installing Bweb Package

yum -y install bacula-enterprise-bweb

# Load Bweb function


# Enable bweb austostart

chkconfig bweb on

# Start Bweb

chown -R bacula /opt/bacula
/opt/bacula/scripts/bacula restart
service bweb start

# Firewall exceptions

sed -i 's/:OUTPUT ACCEPT [0:0]/:OUTPUT ACCEPT [0:0]n-A INPUT -m state --state NEW -m tcp -p tcp --dport 9101:9103 -j ACCEPT/g' /etc/sysconfig/iptables
sed -i 's/:OUTPUT ACCEPT [0:0]/:OUTPUT ACCEPT [0:0]n-A INPUT -m state --state NEW -m tcp -p tcp --dport 9180 -j ACCEPT/g' /etc/sysconfig/iptables
service iptables restart

# If Firewalld

firewall-cmd --permanent --zone=public --add-port=9101-9103/tcp
firewall-cmd --permanent --zone=public --add-port=9180/tcp
service firewalld restart

# Disable selinux:

setenforce 0
sudo sed -i "s/enforcing/disabled/g" /etc/sysconfig/selinux

# Fetch my IP just to print a pretty instruction

server_ip=$(ip route get | awk 'NR==1 {print $NF}')

# Pretty instruction

echo "Bweb setup is done. Please: access it from your browser in http://$server_ip:9180/bweb/"


Disponível em: pt-brPortuguês (Portuguese (Brazil))enEnglishesEspañol (Spanish)