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.

#!/bin/bash

# /root/bacula_enterprise_install.sh
# Centos 7

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

secret_url="<xxxx>"

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

version="10.2.2"

# This will set up your pernsonal BE Repository (don't change anything):

rpm --import https://www.baculasystems.com/dl/keys/BaculaSystems-Public-Signature-08-2017.asc
rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7

yum install -y yum-plugin-priorities

echo "
[Bacula-Enterprise]
name = Red Hat Enterprise - Bacula-Enterprise
baseurl = https://www.baculasystems.com/dl/"$secret_url"/rpms/bin/"$version"/rhel7-64/
enabled = 1
protect = 0
gpgcheck = 1

[Bacula-Enterprise-bweb]
name = Red Hat Enterprise - BWeb Management Suite for BEE
baseurl = https://www.baculasystems.com/dl/"$secret_url"/rpms/bweb/"$version"/rhel7-64/
enabled = 1
protect = 0
gpgcheck = 1

[Bacula-Enterprise-dag]
name = Red Hat Enterprise - Bacula Systems dag for BWeb
baseurl = https://www.baculasystems.com/dl/DAG/rhel7-64/
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

# 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

/opt/bweb/bin/install_bweb.sh

# 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 8.8.8.8 | awk 'NR==1 {print $NF}')

# Pretty instruction

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

bugfix-2855-v8.8.3-rhel.tar

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

Close Menu