2 # bimagemgr Program Configuration
4 # Copyright (C) 2006 Kern Sibbald
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.
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.
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.
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,
37 ## web server configuration
39 # web server path to program from server root
40 $self->{prog_name} = "/cgi-bin/bimagemgr.pl";
43 $self->{http_host}="localhost";
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";
51 ## database configuration
54 $self->{database} = "bacula";
57 $self->{host} = "localhost";
60 $self->{user} = "bacula";
63 $self->{password} = "";
65 # database driver selection - uncomment one set
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'}";
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'}";
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";
82 # path to backup files
83 $self->{image_path} = "/backup";
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
96 $self->{tempfile} = "temp.html";
97 $self->{tempfile_path} = "/var/www/html/temp.html";
98 $self->{working_dir} = "/var/tmp";