Вы находитесь на странице: 1из 7

Bacula Open Source , Webacula, .

Bacula ,
, ,
.
Bacula, .
Webacula (Web +
Bacula), .

Webacula
Webacula -,
LAMP (Linux+Apache+MySQL+PHP). Zend
framework. - ,
, ,
,
( 24 ), ( 7 ),
,
, . RSS .
( webacula),
( ,
). ,
.
Webacula 6 , .
Bacula, 3.1.
GPLv3.

Webacula Ubuntu
Webacula Ubuntu 8.04 LTS,
. Webacula : -
mod_rewrite PHP, Zend Framework 1.8.3 ( PHP 5.2.4
) PDO, php-gd.
MySQL PostgreSQL ( Webacula).
Bacula. 3.,
Ubuntu 8.04 Bacula 2.4.2, Webacula
.
MySQL:
$ sudo apt-get install mysql-server mysql-client


, :
$ sudo mysqladmin -u root password

Bacula MySQL (Director)


(Storage Daemon, SD).
$ sudo apt-get install bacula
, :
bacula bacula-client bacula-director-mysql bacula-sd-mysql bacula-server

(
bacula) . ,
.
bacula-dir.conf.
$ sudo nano /etc/bacula/bacula-dir.conf
Catalog {
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = "baculapass"
}
#

,
Messages:
Messages {
Name = Standard
...
catalog = all, !skipped, !saved
}

Bacula .
.
$ sudo /etc/init.d/bacula-director restart

netstat :
$ netstat -l | grep bacula
tcp 0 0 comp.serv:bacula-dir *:* LISTEN
tcp 0 0 comp.serv:bacula-fd *:* LISTEN
tcp 0 0 comp.serv:bacula-sd *:* LISTEN

C Bacula .


Apache .
$ sudo apt-get install apache2 php5 libapache2-mod-php5 php5-mysql php5-gd

PHP mod_rewrite.
$ sudo a2enmod php5
This module already enabled.
$ sudo a2enmod rewrite

Module rewrite installed; run /etc/init.d/apache2 force-reload to enable.

Webacula :
$ sudo mkdir /var/www/webacula
$ wget -c
http://dfn.dl.sourceforge.net/project/webacula/webacula/3.1/webacula3.1.rc1.tar.gz

/var/www/webacula
svn Webacula.
$ sudo svn co
http://webacula.svn.sourceforge.net/svnroot/webacula/trunk/webacula
/var/www/webacula

Ubuntu Apache www-data, :


$ sudo chown -R www-data:www-data /var/www/webacula

Webacula
.
$ php5 /var/www/webacula/install/check_system_requirements.php
Check System Requirements...
Current MySQL version = 5.0.51 OK
Current PHP version = 5.2.4-2ubuntu5.6 OK
php pdo installed. OK
php gd installed. OK
php xml installed. OK
php dom installed. OK
php pdo_mysql installed. OK
Warning. php pdo_pgsql extension not installed.
php-dom, php-xml installed. OK

Zend ( library),
( Ubuntu
1.5.1)
$ cd /var/www/webacula/library
$ sudo tar xzvf Zend-1.8.3.tar.gz

Zend , :
$ sudo ./runme


config.ini:
$ sudo nano /var/www/webacula/application/config.ini
# bacula
[general]
db.adapter = PDO_MYSQL
; db.adapter = PDO_PGSQL
db.config.host = localhost
db.config.username = bacula
db.config.password = baculapass
db.config.dbname = bacula
; http://www.php.net/timezones
def.timezone = "Europe/Moscow"
; Webacula ,

; locale = "ru"
; ,
tmpdir = "/tmp"
; Webacula, , -,


; bconsole. , sudo
; . INSTALL,
; bacula.sudo = "/usr/bin/sudo"
;
bacula.bconsole = "/usr/bin/bconsole"
bacula.bconsolecmd = "-n -c /etc/bacula/bconsole.conf"
; webacula
[webacula]
db.adapter = PDO_MYSQL
; db.adapter = PDO_PGSQL
db.config.host = localhost
db.config.username = wbuser
db.config.password = wbpass
db.config.dbname = webacula
email.to_admin = root@localhost
email.from = webacula@localhost

bacula ,
. -.
$ sudo usermod -aG bacula www-data
$ cat /etc/group | grep bacula
bacula:x:125:www-data

:
$
$
$
$

sudo
sudo
sudo
sudo

chown
chmod
chown
chmod

root:bacula /usr/bin/bconsole
750 /usr/bin/bconsole
root:bacula /etc/bacula/bconsole.conf
640 /etc/bacula/bconsole.conf

-:
$ sudo nano /etc/apache/sites-available/webacula
Alias "/webacula" "/var/www/webacula/html"
<directory "/var/www/webacula/html">
Options Indexes FollowSymLinks
AllowOverride All
Order deny,allow
Allow from 127.0.0.1
Allow from 192.168.1.0/255.255.255.0
AuthType Basic
AuthName "Webacula"
AuthUserFile
/etc/apache2/webacula.users
Require valid-user
</directory>

.
$ sudo a2ensite webacula
Site webacula installed; run /etc/init.d/apache2 reload to enable.

$ sudo htpasswd -c /etc/apache2/webacula.users admin


New password:
Re-type new password:
Adding password for user admin

.htaccess :
$ cat /var/www/webacula/html/.htaccess
php_flag magic_quotes_gpc off
php_flag register_globals off
RewriteEngine On
RewriteBase /webacula
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

memory_limit max_execution_time
/etc/php5/apache/php.ini:
memory_limit = 32M
max_execution_time = 300

. , :
$ sudo /etc/init.d/apache2 reload

, mod_rewrite, . apachectl:
$ sudo apachectl -t -D DUMP_MODULES 2>&1 | grep rewrite
rewrite_module (shared)

-,
http://localhost/webacula/test_mod_rewrite.
MySQL Webacula
:
$ mysql -u root -p
mysql> CREATE USER 'wbuser'@'localhost' IDENTIFIED BY 'wbpass';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'webacula'@'localhost' WITH GRANT
OPTION;
mysql> FLUSH PRIVILEGES;
mysql> quit

, ,
install.
webacula_mysql_create_database.sh,
( PostgreSQL ):
$ sudo nano /var/www/webacula/install/webacula_mysql_create_database.sh
db_user="wbuser"
db_password="wbpass"
host="localhost"

webacula_mysql_create_database.sh
webacula_mysql_make_tables.sh.
Bacula http://localhost/webacula.
, Webacula
. ,
.


.
tmpdir
wb_clean_tmp.sh cron.

.