Bacula-users

Re: [Bacula-users] Bacula-Web 5.2.12 released

2013-01-30 06:27:36
Subject: Re: [Bacula-users] Bacula-Web 5.2.12 released
From: Bacula-Dev <bacula-dev AT dflc DOT ch>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 30 Jan 2013 11:56:30 +0100
Hello Victor,

See my answer below.

Thanks for your valuable feedback.

Regards

Davide

Subject:
Re: [Bacula-users] Bacula-Web 5.2.12 released
From:
dweimer <dweimer AT dweimer DOT net>
Date:
25.01.2013 19:52
To:
<bacula-users AT lists.sourceforge DOT net>

On 2013-01-25 10:14, Victor Hugo dos Santos wrote:
On Fri, Jan 25, 2013 at 3:40 AM,  <bacula-dev AT dflc DOT ch> wrote:
Dear all,

I'm proud to announce that Bacula-Web 5.2.12 is available from now.

This version is major bug fix release, I'd suggest to all users using a
previous version of Bacula-Web to upgrade to the latest version.

More information are available in the release note.
http://www.bacula-web.org/news.html

Hi,

what you think about the posibility to put a option to select/change a
diferente database/director in the bacula-web interface ??
I have, many instances of bacula server installed in different
places/clients and I thinks that install web-server + bacula-web in
all they is a lost of time and now I have configured a different
virtual host to host in apache each of it with a bacula-web for any of
this clients.

but, maybe a simples combobox in the bacula-web interface is more easy
to manage more that one server.
It's actualy the case. If you've define more than one catalog in config.php, you'll be able to switch between different Bacula catalog using the drop down list (top right of the header).


that is my idea.

thanks for your excelent work.

bye

--
--
Victor Hugo dos Santos
http://www.vhsantos.net
Linux Counter #224399


Victor,
  A quick grep shows that the config.php is called only once through the core/global.inc.php.

  You could do a work around by adding a simple statement in this file, examle:


Original:
// Configuration
define('CONFIG_DIR', BW_ROOT . "/application/config/");
define('CONFIG_FILE', CONFIG_DIR . "config.php");


New Version:
// Configuration
define('CONFIG_DIR', BW_ROOT . "/application/config/");
switch ( $_REQUEST['dbconfig'] ) {
 case "MyOtherDB1":
   define('CONFIG_FILE', CONFIG_DIR . "MyOtherDB1Config.php");
  break;
 case "MyOtherDB2":
   define('CONFIG_FILE', CONFIG_DIR . "MyOtherDB2Config.php");
  break;
 default:
   define('CONFIG_FILE', CONFIG_DIR . "config.php");
  break;
}

Now copy the configuration file to create the two new named files, adjust their configuration for each database.

To Access the default Database, go to your URL http://www.example.com/bacula-web.

To Access the the others use
http://www.example.com/bacula-web/?dbconfig=MyOtherDB1Config.php
http://www.example.com/bacula-web/?dbconfig=MyOtherDB2Config.php

You could simply either save some favorites or make another webpage to call the different options.  Even a container page that has the form at top and target an iframe to load the content.

I haven't tested this, it just an idea to save you multiple installs.
Bacula-Web internal code and user interface will have a lot of improvement within next few weeks/months.
One of the new feature will be to be able to define a "default" catalog.



-- 
Thanks,
   Dean E. Weimer
   http://www.dweimer.net/

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>