User Tools

Site Tools


bacula

Differences

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

Link to this comparison view

Next revision
Previous revision
bacula [2016/01/06 20:09]
127.0.0.1 external edit
bacula [2020/02/13 22:55] (current)
Line 1: Line 1:
  
 ====== Bacula ====== ====== Bacula ======
-<toc><ul><li><link topicref="2">Download/Compile (SUSE)</link></li><li><link topicref="3">Download/Compile (Debian)</link></li><li><link topicref="4">Generate certificates</link></li><li><link topicref="5">Add relevant sections to the .conf files</link></li></ul></toc> 
-If RPM's are not available for your version, then rebuild for your Linux version. 
  
-<code> +===== Generate certificates =====
-rpmbuild --rebuild --define 'build_su9 1' --define 'build_mysql5 1' bacula-2.0.2-1.src.rpm +
-</code> +
-Version 1.38.0 of bacula supports SSL/TLS when compiled from source, but the available RPMS were not built with SSL/TLS support. +
- +
-====== Download/Compile (SUSE) ====== +
-I installed the available RPM first so I could replace the binaries with SSL-enabled ones. +
- +
-I downloaded the source package for 1.38.x (tar.gz) and did a configure with SSL and the options I found in the .spec file of the SRC rpm: +
-<p><strong>Server:</strong></p> +
-<code> +
-./configure \ +
-        --prefix=/usr \ +
-        --sbindir=/usr/sbin \ +
-        --sysconfdir=/etc/bacula \ +
-        --with-scriptdir=/etc/bacula \ +
-        --enable-smartalloc \ +
-        --with-openssl \ +
-        --with-sqlite \ +
-        --with-working-dir=/var/bacula \ +
-        --with-pid-dir=/var/run \ +
-        --with-subsys-dir=/var/lock/subsys \ +
-        --with-dir-user=bacula \ +
-        --with-dir-group=bacula \ +
-        --with-sd-user=bacula \ +
-        --with-sd-group=disk \ +
-        --with-fd-user=root \ +
-        --with-fd-group=bacula \ +
-        --with-readline +
-</code> +
-<strong>Client (fd):</strong> +
- +
-<code> +
-./configure \ +
-        --prefix=/usr \ +
-        --sbindir=/usr/sbin \ +
-        --sysconfdir=/etc/bacula \ +
-        --with-scriptdir=/etc/bacula \ +
-        --enable-smartalloc \ +
-        --with-openssl \ +
-        --enable-client-only \ +
-        --with-working-dir=/var/bacula \ +
-        --with-pid-dir=/var/run \ +
-        --with-subsys-dir=/var/lock/subsys +
-</code> +
-and installed the binaries over top of the RPM ones: +
- +
-<code> +
-make -j6 +
- +
-make -C src/dird/ install +
-make -C src/console/ install +
-make -C src/filed/ install +
-make -C src/stored/ install +
-</code> +
-====== Download/Compile (Debian) ====== +
-This is a complete source installation, not replacing existing packages (since there are none for 1.38 yet) +
- +
-<code> +
-apt-get install mysql-server libmysqlclient15-dev libssl-dev libreadline5-dev +
- +
-/usr/sbin/groupadd -g 90 bacula +
-/usr/sbin/useradd -c 'Bacula' -d /var/lib/bacula -m -k /dev/null -g bacula -u 90 -s /bin/bash bacula +
- +
-./configure \ +
-        --prefix=/usr \ +
-        --sbindir=/usr/sbin \ +
-        --sysconfdir=/etc/bacula \ +
-        --with-scriptdir=/etc/bacula \ +
-        --enable-smartalloc \ +
-        --with-openssl \ +
-        --with-mysql \ +
-        --with-working-dir=/var/lib/bacula \ +
-        --with-pid-dir=/var/run \ +
-        --with-subsys-dir=/var/lock \ +
-        --with-dir-user=bacula \ +
-        --with-dir-group=bacula \ +
-        --with-sd-user=bacula \ +
-        --with-sd-group=bacula \ +
-        --with-fd-user=root \ +
-        --with-fd-group=bacula \ +
-        --with-readline +
-make -j6 && make install +
- +
-cd /etc/init.d/ && ln -s /etc/bacula/bacula . && /usr/sbin/update-rc.d bacula defaults +
-</code> +
-====== Generate certificates ======+
 <code> <code>
 cd /etc/bacula cd /etc/bacula
Line 97: Line 9:
  
 <code> <code>
-sed -i 's/365'/3650'//usr/lib/ssl/misc/CA.pl+sed -i "s/365'/3650'//usr/lib/ssl/misc/CA.pl
 /usr/lib/ssl/misc/CA.pl -newca /usr/lib/ssl/misc/CA.pl -newca
 </code> </code>
Line 115: Line 27:
 chgrp bacula bacula-<client>.* cacert.pem chgrp bacula bacula-<client>.* cacert.pem
 </code> </code>
-====== Add relevant sections to the .conf files ====== +===== Add relevant sections to the .conf files ===== 
-<tt>/etc/bacula/bacula-dir.conf</tt>+/etc/bacula/bacula-dir.conf
  
 <code> <code>
Line 150: Line 62:
 } }
 </code> </code>
-<tt>/etc/bacula/bacula-fd.conf</tt>+ 
 +/etc/bacula/bacula-fd.conf
  
 <code> <code>
Line 174: Line 87:
 } }
 </code> </code>
-<tt>/etc/bacula/bacula-sd.conf</tt>+ 
 +/etc/bacula/bacula-sd.conf
  
 <code> <code>
Line 199: Line 113:
 } }
 </code> </code>
-<tt>/etc/bacula/bconsole.conf</tt>+ 
 +/etc/bacula/bconsole.conf
  
 <code> <code>
bacula.1452128995.txt.gz · Last modified: 2020/02/13 22:55 (external edit)

free spam filter