User Tools

Site Tools


bacula_on_centos_7

This is an old revision of the document!


Bacula on CentOS 7

Installation

Bacula Director

yum install postgresql-server perl-DBD-Pg
yum install bacula-director bacula-console
postgresql-setup initdb
systemctl restart postgresql
systemctl enable postgresql

Configuration

Firewall

/etc/firewalld/services/bacula-sd.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>bacula-sd</short>
  <description>Bacula storage daemon</description>
  <port protocol="tcp" port="9103"/>
</service>
/etc/firewalld/services/bacula-fd.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>bacula-fd</short>
  <description>Bacula file daemon</description>
  <port protocol="tcp" port="9102"/>
</service>
/etc/firewalld/services/bacula-dir.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>bacula-dir</short>
  <description>Bacula director daemon</description>
  <port protocol="tcp" port="9101"/>
</service>

Bacula Director

su - postgres
createuser -P -s root
Enter password for new role:
Enter it again:
exit
/usr/libexec/bacula/create_postgresql_database
/usr/libexec/bacula/make_postgresql_tables
/usr/libexec/bacula/grant_postgresql_privileges
/usr/libexec/bacula/grant_bacula_privileges
psql -d bacula
ALTER USER bacula with password 'PASSWORD';
/var/lib/pgsql/data/pg_hba.conf
# "local" is for Unix domain socket connections only
local   all         all                               trust
# IPv4 local connections:
host    all         all         127.0.0.1/32          trust
# IPv6 local connections:
host    all         all         ::1/128               trust
bacula_on_centos_7.1426604166.txt.gz · Last modified: by herwarth