Main Menu
Home
Search
Support
How To's
OpenWiki
Contact Us
Users Blogs
User HowTo's
Announcements
Google Translation

 

 

 

 

backups with Bacula, MySql & Apache PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Paul Matthews   

backups with Bacula, MySql & Apache

 

Name: Apache
HomePage: http://www.apache.org/
function: Webserver

 

Name: MySQL
HomePage: http://www.mysql.com/
function: MySQL, the most popular Open Source SQL database

 

1. First thing we need to do is download the source cdoe from the Bacula website

http://www.bacula.org/

2. Download the following files

bacula-1.38.9.tar.gz
bacula-docs-1.38.9.tar.gz
bacula-gui-1.38.9.tar.gz

3. now unzip  bacula-1.38.9.tar.gz

tar -zxvf bacula-1.38.9.tar.gz
cd bacula-1.38.9

4. now install bacula

./configure \
--sbindir=/usr/local/bacula/sbin \
--sysconfdir=/usr/local/bacula/etc \
--with-pid-dir=/usr/local/bacula/var/run \
--enable-smartaloc --with-mysql \
--with-working-dir=/usr/local/bacula/working
--with-dump-email= This e-mail address is being protected from spam bots, you need JavaScript enabled to view it This email address is being protected from spam bots, you need Javascript enabled to view it \
--with-job-email= This e-mail address is being protected from spam bots, you need JavaScript enabled to view it This email address is being protected from spam bots, you need Javascript enabled to view it \
--with-smtp-host=localhost \
--with-baseport=9101

make
make install

5. Now move into the bacula directory

cd /usr/local/bacula/etc

6. Edit the create_mysql_database file, on line 8, -u root -p (just after the mysql command).

nano create_mysql_database

so it will look like this

if $bindir/mysql -u root -p $* -f <<END-OF-DATA

7. Then run:


./create_bacula_database

8. Then edit, make_mysql_tables on line 7 add the same as above, -u root -p (just after the mysql command)

nano make_mysql_tables

so it will look like this

 if $bindir/mysql -u root -p $* -f <<END-OF-DATA

9. Then run:


./make_bacula_tables

10. now set the mysql user bacula to have the correct permissions.

mysql --user=root mysql

GRANT ALL PRIVILEGES ON *.* TO 'bacula'@'localhost';

11. now copy the init script from the installation source

cp bacula-1.38.9/scripts/bacula /etc/init.d/

12. once that is done start bacula

/etc/init.d/bacula start

13. Now it's time to setup the web interface of bacula

tar -zxvf bacula-gui-1.38.9.tar.gz
cd bacula-gui-1.38.9

14. now install it

./configure --with-bacula=/install/bacula-1.38.9

15. now it;s time to install bimagemgr

cd bimagemgr
make
make install

16. now change directories back into bacula-gui-1.38.9

cd bacula-gui-1.38.9

17. Next we need to download pear(DB)

http://pear.php.net/package/DB/download

18. now install it

pear install -n /path/to/DB-1.7.6.tgz
 
19. Now we need to install php-gd you can install it using yum

yum install php-gd

20. Next step start apache

/etc/init.d/httpd start

21.  coming soon…

 


 


BookMarking:

 

cell1

cell3 Submit to del.icio.us
cell4
AddThis Social Bookmark Button

 


Trouble Shooting:

Go to the wiki page

Go to the 'Contact Us ' Forum

Go to the how-to's Support Forum


External Links:

 

http://bin-false.org/?p=15

Last Updated ( Sunday, 03 June 2007 )
 
< Prev