]> git.sur5r.net Git - bacula/bacula/blob - gui/bimagemgr/config.pm
bacula-web: Added job endtime for last know good backup job in client report page
[bacula/bacula] / gui / bimagemgr / config.pm
1 ##
2 # bimagemgr Program Configuration
3 #
4 # Copyright (C) 2006 Kern Sibbald
5 #
6 # Sun May 07 2006 D. Scott Barninger <barninger at fairfieldcomputers.com>
7 # ASSIGNMENT OF COPYRIGHT
8 # FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and 
9 # assigns unto Kern Sibbald, his successors, assigns and personal representatives, 
10 # all right, title and interest in and to the copyright in this software.
11 # D. Scott Barninger warrants good title to said copyright, that it is 
12 # free of all liens, encumbrances or any known claims against said copyright.
13 #
14 # This program is free software; you can redistribute it and/or
15 # modify it under the terms of the GNU General Public
16 # License version 2 as published by the Free Software Foundation.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 # General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public
24 # License along with this program; if not, write to the Free
25 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
26 # MA 02111-1307, USA.
27 ##
28
29 package config;
30
31 use strict;
32
33 sub new {
34
35         my $self = {};
36
37         ## web server configuration
38         #
39         # web server path to program from server root
40         $self->{prog_name} = "/cgi-bin/bimagemgr.pl";
41         #
42         # web server host
43         $self->{http_host}="localhost";
44         #
45         # path to graphics from document root
46         $self->{logo_graphic} = "/bimagemgr.gif";
47         $self->{spacer_graphic} = "/clearpixel.gif";
48         $self->{burn_graphic} = "/cdrom_spins.gif";
49         ##
50
51         ## database configuration
52         #
53         # database name
54         $self->{database} = "bacula";
55         #
56         # database host
57         $self->{host} = "localhost";
58         #
59         # database user
60         $self->{user} = "bacula";
61         #
62         # database password
63         $self->{password} = "";
64         #
65         # database driver selection - uncomment one set
66         # MySQL
67         $self->{db_driver} = "mysql";
68         $self->{db_name_param} = "database";
69         $self->{catalog_dump} = "mysqldump --host=$self->{'host'} --user=$self->{'user'} --password=$self->{'password'} $self->{'database'}";
70         # Postgresql
71         # $self->{db_driver} = "Pg";
72         # $self->{db_name_param} = "dbname";
73         # $self->{catalog_dump} = "pg_dump --host=$self->{'host'} --username=$self->{'user'} --password=$self->{'password'} $self->{'database'}";
74         # SQLite
75         $self->{sqlitebindir} = "/usr/lib/bacula/sqlite";
76         $self->{bacula_working_dir} = "/var/bacula";
77         # $self->{db_driver} = "SQLite";
78         # $self->{db_name_param} = "dbname";
79         # $self->{catalog_dump} = "echo \".dump\" | $self->{'sqlitebindir'}/sqlite $self->{'bacula_working_dir'}/$self->{'database'}.db";
80         ##
81
82         # path to backup files
83         $self->{image_path} = "/backup";
84
85         ## path to cdrecord and burner settings
86         $self->{cdrecord} = "/usr/bin/cdrecord";
87         $self->{mkisofs} = "/usr/bin/mkisofs";
88         $self->{cdburner} = "1,0,0";
89         $self->{burner_speed} = "40";
90         # burnfree option - uncomment one
91         #$self->{burnfree} = "driveropts=noburnfree"; # no buffer underrun protection
92         $self->{burnfree} = "driveropts=burnfree"; # with buffer underrun
93         ##
94
95         # temporary files
96         $self->{tempfile} = "temp.html";
97         $self->{tempfile_path} = "/var/www/html/temp.html";
98         $self->{working_dir} = "/var/tmp";
99
100         bless($self);
101         return($self);
102
103 }
104
105 1;