User Tools

Site Tools


howto_install_bacula_5.0.2_from_src.rpm_on_rhel_5_or_centos_5

Differences

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

Link to this comparison view

Next revision
Previous revision
howto_install_bacula_5.0.2_from_src.rpm_on_rhel_5_or_centos_5 [2010/06/02 09:50]
roos created
howto_install_bacula_5.0.2_from_src.rpm_on_rhel_5_or_centos_5 [2010/12/04 19:07] (current)
klabacita
Line 2: Line 2:
  
 ====== Build Script ====== ====== Build Script ======
-For convenience you can download the make_bacula_rpms.sh script attached to this page. It performs all necessary steps described below.+For convenience you can download the {{:​make_bacula_rpms_centos5_v0.2.tar.gz|}} ​script attached to this page. It performs all necessary steps described below.
  
 ====== OS, required packages ====== ====== OS, required packages ======
  
-Do a base install of CentOS5+Do a base install of CentOS5 ​(i386 or x86_64 supported)
  
 Now add some more packages (as root): Now add some more packages (as root):
Line 15: Line 15:
 ===== Additional packages ===== ===== Additional packages =====
  
-To build the wzconsole, you must install additional packages. If you do not need wzconsole, you can skip this step. In this case, you must set "build_wzconsole ​0" when performing the rpmbuild command (see below).+To build the wxconsole, you must install additional packages. If you do not need wxconsole, you can skip this step. In this case, you must set "build_wxconsole ​0" when performing the rpmbuild command (see below).
 Install the epel repo Install the epel repo
  
Line 45: Line 45:
 Download the bacula .src.rpm files to a directory in the user folder structure (not as root!) Download the bacula .src.rpm files to a directory in the user folder structure (not as root!)
  
-Then in that directoryas that non root user+If you want to build the wxconsole (GTK)add --define "​build_wxconsole 1". If you want to build the bconsole (Gnome) version, add --define "​build_bconsole 1" instead. 
 + 
 +As non-root user, perform the build:
   
- rpmbuild --rebuild --define "​build_centos5 1" --define "​build_mysql 1" --define "​build_bat 1" --define "build_wzconsole ​1" bacula-5.0.2-1.src.rpm + rpmbuild --rebuild --define "​build_centos5 1" --define "​build_mysql 1" --define "​build_bat 1" --define "build_wxconsole ​1" bacula-5.0.2-1.src.rpm 
- rpmbuild --rebuild --define "​build_centos5 1" --define "​build_mysql 1" --define "​build_bat 1" --define "build_wzconsole ​1" bacula-bat-5.0.2-1.src.rpm + rpmbuild --rebuild --define "​build_centos5 1" --define "​build_mysql 1" --define "​build_bat 1" --define "build_wxconsole ​1" bacula-bat-5.0.2-1.src.rpm 
- rpmbuild --rebuild --define "​build_centos5 1" --define "​build_mysql 1" --define "​build_bat 1" --define "build_wzconsole ​1" bacula-mtx-5.0.2-1.src.rpm + rpmbuild --rebuild --define "​build_centos5 1" --define "​build_mysql 1" --define "​build_bat 1" --define "build_wxconsole ​1" bacula-mtx-5.0.2-1.src.rpm 
- rpmbuild --rebuild --define "​build_centos5 1" --define "​build_mysql 1" --define "​build_bat 1" --define "build_wzconsole ​1" bacula-docs-5.0.2-1.src.rpm+ rpmbuild --rebuild --define "​build_centos5 1" --define "​build_mysql 1" --define "​build_bat 1" --define "build_wxconsole ​1" bacula-docs-5.0.2-1.src.rpm
  
 ====== Install bacula (Bacula Server) ====== ====== Install bacula (Bacula Server) ======
Line 58: Line 60:
         rpm -Uvh bacula-mysql-5.0.2-1.<​arch>​.rpm         rpm -Uvh bacula-mysql-5.0.2-1.<​arch>​.rpm
         rpm -Uvh bacula-bat-5.0.2-1.<​arch>​.rpm         rpm -Uvh bacula-bat-5.0.2-1.<​arch>​.rpm
 +        ​
 +U have to change the rights for the library libbac-5.X.Y.so which on a x64 arch is found on:
 +        /usr/lib64/
 +        ​
 +On a i386 must be on
 +        /usr/lib/
 +        ​
 +chown bacula:​bacula /​usr/​lib?/​libbac-5.0.1.so ​
 +
 +If not the system would send u messages to your email account if u have one, u will receive this log:
 +
 +<​blockquote>​Dec ​ 3 21:50:03 my-backup bacula-dir: 03-Dec 21:50  Message delivery ERROR: Mail prog: /​usr/​sbin/​bsmtp:​ error while loading shared libraries: libbac-5.0.1.so:​ cannot open shared object file: Permission denied</​blockquote>​
 +
 +
  
 ===== Setup the MySQL Database ===== ===== Setup the MySQL Database =====
Line 77: Line 93:
  vi make_mysql_tables  vi make_mysql_tables
  
 +Note: on x64 arch you will found this on
 +
 +        /​usr/​lib64/​bacula
  
 Original line: Original line:
Line 101: Line 120:
  
 ===== Start the services ===== ===== Start the services =====
-service bacula-sd start +        ​service bacula-sd start 
-service bacula-dir start +        service bacula-dir start 
-service bacula-fd start+        service bacula-fd start
  
 You should now have a working installation of bacula server. You should now have a working installation of bacula server.
Line 111: Line 130:
 Normally this means, pointing the daemon to your director and setting the client password. Normally this means, pointing the daemon to your director and setting the client password.
  
 +Then start the fd daemon: 
 +        service bacula-fd start
  
 ====== Enhancements ====== ====== Enhancements ======
Line 119: Line 139:
  
    
-This document is based on the bacula 5.0.0 document on this wiki.+This document is based on [[howto_install_bacula_5.0.0_from_src.rpm_on_rhel_5_or_centos_5]] ​.
  
  
howto_install_bacula_5.0.2_from_src.rpm_on_rhel_5_or_centos_5.1275468624.txt.gz · Last modified: 2010/06/02 09:50 by roos