User Tools

Site Tools


bacula_on_centos_7

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bacula_on_centos_7 [2015/03/17 14:44] herwarthbacula_on_centos_7 [2015/03/20 12:39] (current) – [Bacula Director] herwarth
Line 1: Line 1:
-======Bacula on CentOS 7======+======Bacula on CentOS 7====== 
 +=====Repository===== 
 +  cd /etc/yum.repos.d 
 +  wget https://repos.fedorapeople.org/repos/slaanesh/bacula7/epel-bacula7.repo 
 + 
 +====GPG key==== 
 +  rpm --import https://repos.fedorapeople.org/repos/slaanesh/bacula7/RPM-GPG-KEY-slaanesh
 =====Installation===== =====Installation=====
 ====Bacula SD==== ====Bacula SD====
-  yum install bacula-storage mtx +  yum install bacula-storage mt-st
- +
-  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==== ====Bacula Director====
Line 19: Line 17:
   systemctl restart postgresql   systemctl restart postgresql
   systemctl enable postgresql   systemctl enable postgresql
 +===Bacula BAT (Optional)=== 
 +  yum install bacula-console-bat xorg-x11-xauth xorg-x11-fonts-* 
 +  
 =====Configuration===== =====Configuration=====
 ====Firewall==== ====Firewall====
-<code /etc/firewalld/services/bacula-sd.xml> +  firewall-cmd --permanent --zone=management --add-service=bacula 
-</code> +  firewall-cmd --permanent --zone=local --add-service=bacula 
-<code /etc/firewalld/services/bacula-fd.xml> +  firewall-cmd --permanent --zone=dmz --add-service=bacula
-</code> +
-<code /etc/firewalld/services/bacula-dir.xml> +
-</code>+
  
- 
-====Bacula SD==== 
-<code - /etc/bacula/bacula-sd.conf> 
-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 
-} 
-</code> 
  
 ====Bacula Director==== ====Bacula Director====
Line 85: Line 35:
 exit exit
 </code> </code>
- 
 <code> <code>
 /usr/libexec/bacula/create_postgresql_database /usr/libexec/bacula/create_postgresql_database
Line 105: Line 54:
 host    all         all         ::1/128               trust host    all         all         ::1/128               trust
 </code> </code>
 +
 +=====Uninstall Bacula 5 SD=====
 +  yum remove bacula-common bacula-libs bacula-libs-sql bacula-storage mt-st postgresql-libs
 +
  
 {{tag>centos}} {{tag>centos}}
bacula_on_centos_7.1426603440.txt.gz · Last modified: by herwarth