======Bacula 5 on CentOS 6====== =====Installation===== ====Repositories==== cd /etc/yum.repos.d wget http://repos.fedorapeople.org/repos/slaanesh/bacula/epel-bacula.repo ====Bacula SD==== yum install bacula-storage mtx Installing : bacula-libs-5.2.13-18.el6.x86_64 1/7 Installing : bacula-common-5.2.13-18.el6.x86_64 2/7 Installing : lzo-2.03-3.1.el6.x86_64 3/7 Installing : mt-st-1.1-5.el6.x86_64 4/7 Installing : postgresql-libs-8.4.20-1.el6_5.x86_64 5/7 Installing : bacula-libs-sql-5.2.13-18.el6.x86_64 6/7 Installing : bacula-storage-5.2.13-18.el6.x86_64 7/7 ====Bacula Director==== yum install postgresql-server perl-DBD-Pg yum install bacula-director bacula-console service postgresql initdb service postgresql start =====Configuration===== ====Bacula SD==== Storage { # definition of myself Name = bergschenhoek-sd SDPort = 9103 # Director's port WorkingDirectory = "/var/spool/bacula" Pid Directory = "/var/run" Maximum Concurrent Jobs = 20 } Director { Name = bergschenhoek-dir Password = "storagedaemonpassword" } Autochanger { Name = LTO-Changer Device = lto.bh Changer Device = /dev/changer Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" } Device { Name = lto.bh Description = "HP Ultrium 6" Media Type = LTO Drive Index = 0 AutoChanger = yes; Archive Device = /dev/nst0 Changer Device = /dev/changer # moet dus generic scsi layer hebben Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; # Mount Anonymous Volumes = no; # tape moet gelabeled zijn # Spool Directory = /var/spool/bacula; # Maximum Spool Size = 50G } Messages { Name = Standard director = bergschenhoek-dir = all file = /var/log/bacula/bacula-sd.log = all } ====Bacula Director==== su - postgres createuser -P Enter name of role to add: root Enter password for new role: Enter it again: Shall the new role be a superuser? (y/n) y 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'; # "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 {{tag>centos}}