]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl update for db_size
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 3 Mar 2007 09:45:44 +0000 (09:45 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 3 Mar 2007 09:45:44 +0000 (09:45 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4301 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/INSTALL
gui/bweb/ReleaseNotes

index 4ef27bc559da3b34f7c0639ffb8e805d33657de6..e80e9fce4314d9782b36e0906493eeb11c8c936a 100644 (file)
@@ -7,7 +7,7 @@ Bweb works well with 1.39 release or later.
 1) install Perl lib
 2) copy your files
 3) initialize your configuration file
-4) do some sql stuff (for postgresql users)
+4) do some sql stuff (for postgresql or mysql 5 users)
 5) use the -n option on bconsole so that it works with Expect
 6) get bacula log more useful
 7) bweb limitation
@@ -180,16 +180,24 @@ If you want to use brestore with bweb, you must associate a mime type
 text/brestore with your brestore.pl, and you must install brestore.
 See gui/brestore/README for instructions on installing brestore.pl.
 
-################ POSTGRESQL NOTES ##############################
+################ POSTGRESQL AND MYSQL5 NOTES ####################
 
 If you want to use PostgreSQL instead of MySQL, you must add
 a function to the PostgreSQL Bacula database to get Bweb to work.
 
 psql -U bacula bacula < script/bweb-postgresql.sql
 
-Tips: PL must be enable in your cluster, you can do this with postgres user
+Tips: PL must be enabled in your cluster, you can do this with postgres user
 postgres:~$ echo 'CREATE PROCEDURAL LANGUAGE plpgsql;' | psql bacula 
 
+
+To get database size with mysql5, edit Bweb.pm and change the DB_SIZE macro
+
+ # with mysql < 5, you have to play with the ugly SHOW command
+ DB_SIZE => " SELECT 0 ",
+ # works only with mysql 5
+ # DB_SIZE => " SELECT sum(DATA_LENGTH) FROM INFORMATION_SCHEMA.TABLES ",
+
 ################ BCONSOLE NOTES ################################
 
 You must use bconsole without conio/readline support. For that, use
index c334dfbda59bdbe37c0a5154d1c5f28ffd74bbed..0c516ea5b343969158cbd444e6ae605c910f120f 100644 (file)
@@ -1,5 +1,8 @@
           Release Notes for bweb 2.0
 
+2007/03/02
+ - Add Postgresql and Mysql5 database size information (See INSTALL for mysql)
+
 2007/03/01
  - Add display_time_log option to get timestamp in display_log
  - Add Warning filter on display_job (see jobstatus=T and joberrors > 0)