]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bweb/INSTALL
ebl update
[bacula/bacula] / gui / bweb / INSTALL
index 7f1b53bd5faf0240641ee7f95d662d41a7c47b29..587a413a413956c675d71172376f4e2668d7c561 100644 (file)
@@ -17,6 +17,7 @@ Bweb works well with 1.39 release or later.
 11) setting mysql read-only account
 12) get more statistics
 13) use groups with bweb
+14) setup restoration in bweb (not yet working)
 
 ################ FILE COPY #####################################
  # you must get bweb svn files
@@ -48,8 +49,8 @@ Bweb works well with 1.39 release or later.
  chown www-data /etc/bacula/bweb.conf
 
  # copy the bweb template file
- mkdir -p /usr/share/bweb/tpl
- install -m 644 -o root -g root  bweb/tpl/*.tpl /usr/share/bweb/tpl
+ mkdir -p /usr/share/bweb/tpl/en
+ install -m 644 -o root -g root  bweb/lang/tpl/en/*.tpl /usr/share/bweb/tpl/en
 
  # copy the bweb graphics elements (bweb elements must reside in /bweb)
  mkdir /var/www/bweb
@@ -61,9 +62,10 @@ Bweb works well with 1.39 release or later.
            to read the bconsole.conf file!
            You can create an bconsole group for that.
 
-################ USE FRENCH VERSION ############################
+################ USE FRENCH/SPANISH VERSION ####################
 
-Simply use lang/fr/tpl/*.tpl files instead of tpl/*.tpl
+Simply copy lang/fr/tpl/*.tpl files to .../tpl/fr/*.tpl and choose
+your language in the configuration panel.
 
 ################ INSTALL PERL LIBRARY ##########################
 
@@ -76,14 +78,16 @@ Simply use lang/fr/tpl/*.tpl files instead of tpl/*.tpl
     - CGI
     - Expect
     - Time::ParseDate
+    - Date::Calc
 
  You can install perl modules with CPAN
  perl -e shell -MCPAN
   > install Expect
 
  Or use your distribution
- apt-get install libgd-graph-perl libhtml-template-perl libexpect-perl
- apt-get install libdbd-mysql-perl libdbd-pg-perl libdbi-perl libtime-modules-perl
+ apt-get install libgd-graph-perl libhtml-template-perl libexpect-perl \
+                 libdbd-mysql-perl libdbd-pg-perl libdbi-perl \
+                 libdate-calc-perl libtime-modules-perl
 
  Note: the best way to test if you have all the dependencies
  fullfilled for Perl is to:
@@ -168,6 +172,7 @@ $VAR1 = bless( {
    },
   'password' => 'xxx',
   'template_dir' => '/usr/share/bweb/tpl',
+  'lang' => 'en',
   'dbi' => 'DBI:mysql:database=bacula',
   'error' => '',
   'debug' => 0,
@@ -260,7 +265,7 @@ chmod 700 /var/spool/bweb
 chown www-data /var/spool/bweb
 
 You have to remove "<!-- Remove this to activate bfileview" and "-->" from
-tpl/display_job_zoom.tpl.
+tpl/en/display_job_zoom.tpl.
 
 You MUST use brestore.pl -b to initialize the database, and
 you CAN use bfileview.pl mode=batch jobid=xxx where=/ to compute tree size.
@@ -304,8 +309,6 @@ GRANT INSERT,UPDATE,DELETE ON bacula.Location
   TO 'bweb'@'%' IDENTIFIED BY 'password';
 GRANT INSERT,UPDATE,DELETE ON bacula.LocationLog 
   TO 'bweb'@'%' IDENTIFIED BY 'password';
-GRANT UPDATE (LocationId,Comment,RecyclePoolId) ON bacula.Media 
-  TO 'bweb'@'%'  IDENTIFIED BY 'password';
 
 ################ GET MORE STATISTICS ###########################
 
@@ -324,6 +327,29 @@ It works with postgresql and mysql5 (4 not tested).
 With mysql, load bweb/script/bweb-mysql.sql into your catalog
 For postgresql, it will be done with bweb/script/bweb-postgresql.sql (already done)
 
+################ MADE RESTORATION WITH BWEB ####################
+
+Warning, this function is not for production use at this time !
+It will do some basics things on a working bweb/brestore setup.
+
+1) Go to http://extjs.com and download their toolkit (last 1.X release)
+
+2) Install files in /bweb/ext web root 
+ example on debian : 
+  root@localhost:~# mv ext-1.1.1 /usr/share/bweb/html/ext
+
+3) Make sure that brestore cache tables are in your catalog (bweb-xxx.sql files)
+
+4) Enable bresto.pl cgi. 
+  edit the bweb/cgi/bresto.pl script and change $bresto_enable=0; to $bresto_enable=1;
+  on the top of the file.
+
+5) Use the last Bweb.pm
+  If you are trying bresto in a working bweb/brestore setup, you must make sure that you use 
+  the last Bweb.pm SVN version.
+
+6) Go on http://you-director/bweb/bresto.html
+
 ################################################################
 
 Enjoy !