Linux technical support - support@alexlinux.com


Bacula 5.2 centos 6.5 installation

1) bacula server (director+storage) configuration:

ssh root@192.168.1.41

vi /etc/yum.repos.d/epel-bacula.repo

[epel-bacula]

name=Bacula backports from rawhide

baseurl=http://repos.fedorapeople.org/repos/slaanesh/bacula/epel-$releasever/$basearch/

enabled=1

skip_if_unavailable=1

gpgkey=http://repos.fedorapeople.org/repos/slaanesh/bacula/RPM-GPG-KEY-slaanesh

gpgcheck=1

[epel-bacula-source]

name=Bacula backports from rawhide - Source

baseurl=http://repos.fedorapeople.org/repos/slaanesh/bacula/epel-$releasever/SRPMS

enabled=0

skip_if_unavailable=1

gpgkey=http://repos.fedorapeople.org/repos/slaanesh/bacula/RPM-GPG-KEY-slaanesh

gpgcheck=1
[root@bacula-server bacula]# yum install bacula-director-mysql bacula-storage bacula-console mysql-server

[root@bacula-server bacula]# cd /etc/bacula/

[root@bacula-server bacula]# ls

bacula-dir.conf bacula-sd.conf bconsole.conf query.sql

[root@bacula-server bacula]# cp bacula-dir.conf bacula-dir.conf.bak

[root@bacula-server bacula]# cp bacula-sd.conf bacula-sd.conf.bak

[root@bacula-server bacula]# cp bconsole.conf bconsole.conf.bak

[root@bacula-server bacula]# sed -i 's/@@DIR_PASSWORD@@/alexlinux/g' bacula-dir.conf

[root@bacula-server bacula]# sed -i 's/@@FD_PASSWORD@@/alexlinux/g' bacula-dir.conf

[root@bacula-server bacula]# sed -i 's/@@SD_PASSWORD@@/alexlinux/g' bacula-dir.conf

[root@bacula-server bacula]# sed -i 's/@@MON_SD_PASSWORD@@/alexlinux/g' bacula-dir.conf

[root@bacula-server bacula]# sed -i 's/@@MON_DIR_PASSWORD@@/alexlinux/g' bacula-dir.conf

[root@bacula-server bacula]# sed -i 's/@@SD_PASSWORD@@/alexlinux/g' bacula-sd.conf

[root@bacula-server bacula]# sed -i 's/@@MON_SD_PASSWORD@@/alexlinux/g' bacula-sd.conf

[root@bacula-server bacula]# sed -i 's/@@DIR_PASSWORD@@/alexlinux/g' bacula-dir.conf

[root@bacula-server bacula]# vi bacula-dir.conf

Client {

Name = bacula-fd
Address = 192.168.1.42
FDPort = 9102
Catalog = MyCatalog
Password = "alexlinux" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}

Storage {
Name = File
Address = 192.168.1.41
SDPort = 9103
Password = "alexlinux"
Device = FileStorage
Media Type = File
}

Catalog {
Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport =..
dbname = "bacula"; dbuser = "bacula"; dbpassword = "BACULAPASSWD"
}

[root@bacula-server bacula]# vi bconsole.conf

Director {

Name = bacula-dir
DIRport = 9101
address = 192.168.1.41
Password = "alexlinux"
}
[root@bacula-server bacula]# chkconfig mysqld on

[root@bacula-server bacula]# service mysqld start

[root@bacula-server bacula]# /usr/bin/mysqladmin -u root password 'new-password'

[root@bacula-server bacula]# alternatives --config libbaccats.so

[root@bacula-server bacula]# /usr/libexec/bacula/grant_mysql_privileges -u root -p

[root@bacula-server bacula]# /usr/libexec/bacula/create_mysql_database -u root -p

[root@bacula-server bacula]# /usr/libexec/bacula/make_mysql_tables -u root -p

[root@bacula-server bacula]# mysql -u root -p

UPDATE mysql . user SET password=PASSWORD("BACULAPASSWD") WHERE user='bacula';

FLUSH PRIVILEGES;

quit;
[root@bacula-server bacula]# service bacula-dir start

[root@bacula-server bacula]# service bacula-sd start

[root@bacula-server bacula]# chkconfig bacula-dir on

[root@bacula-server bacula]# chkconfig bacula-sd on

2) bacula client configuration:

ssh root@192.168.1.42

vi /etc/yum.repos.d/epel-bacula.repo

[epel-bacula]

name=Bacula backports from rawhide

baseurl=http://repos.fedorapeople.org/repos/slaanesh/bacula/epel-$releasever/$basearch/

enabled=1

skip_if_unavailable=1

gpgkey=http://repos.fedorapeople.org/repos/slaanesh/bacula/RPM-GPG-KEY-slaanesh

gpgcheck=1

[epel-bacula-source]

name=Bacula backports from rawhide - Source

baseurl=http://repos.fedorapeople.org/repos/slaanesh/bacula/epel-$releasever/SRPMS

enabled=0

skip_if_unavailable=1

gpgkey=http://repos.fedorapeople.org/repos/slaanesh/bacula/RPM-GPG-KEY-slaanesh

gpgcheck=1
yum install bacula-client

cd /etc/bacula/

sed -i 's/@@FD_PASSWORD@@/alexlinux/g' bacula-fd.conf

sed -i 's/@@MON_FD_PASSWORD@@/alexlinux/g' bacula-fd.conf

chkconfig bacula-fd on

service bacula-fd start

Leave a Reply

Your email address will not be published.

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=""> <strike> <strong>