]> git.sur5r.net Git - bacula/bacula/blob - gui/brestore/INSTALL
00eb94dece3b8c06122cb31476a9ae71433f996b
[bacula/bacula] / gui / brestore / INSTALL
1 ################ INSTALL NOTES FOR BRESTORE ####################
2
3 # you can install the user interfact glade file on
4 # /usr/share/brestore or /usr/local/share/brestore
5
6 mkdir -p /usr/share/brestore
7 install -m 644 -o root -g root brestore.glade /usr/share/brestore
8 install -m 755 -o root -g root brestore.pl    /usr/bin
9
10 # if you don't use bweb and bconsole.pl
11 # you must get Bconsole.pm from bweb modules (bweb/lib/Bconsole.pm)
12 # and install it.  If bweb is installed, Bconsole.pm is already
13 # installed.
14
15 install -m 644 -o root -g root Bconsole.pm /usr/share/perl5
16
17 # copy bsr file directly to your director, use must use scp (or nfs stuff)
18 # if you doesn't want to use this, you can dump the bsr file with "Gen BSR" button.
19 # so you must have an ssh-key exchange. (you can also hack brestore.pl to use 
20 # something like '$err = `xterm -e scp $src $1 2>&1`'
21
22 your_login@yourws:~$ ssh-copy-id -i .ssh/your_pub_key login@bacula-dir
23
24 # you have to configure brestore preferences.
25
26 ################ WINDOWS INSTALL ###############################
27
28 Brestore works on win32 with ActivePerl. To get all libraries, you
29 can install GCSTAR. You have also to copy libglade-2.0.dll
30
31 ################ INSTALL MODULES ###############################
32
33 Perl Modules
34 The Debian Way
35
36 apt-get install libgtk2-gladexml-perl
37 apt-get install libdbd-mysql-perl
38 apt-get install libdbd-pg-perl
39 apt-get install libexpect-perl
40 apt-get install libwww-perl
41
42 The Red Hat way
43 perl, perl-DBI, perl-DBD-mysql, perl-DBD-Pg, perl-Expect, perl-libwww-perl
44 perl-Gtk2-GladeXML
45
46 The generic Way, if those modules aren't packaged by your distro
47 perl -MCPAN -e shell
48 install Gtk2
49 install Expect
50 install Gtk2::GladeXML
51 install LWP
52
53 install DBD::mysql
54 or
55 install DBD::Pg
56
57 ################ BCONSOLE WITHOUT CONIO ########################
58
59 If you don't use Bweb, you must use bconsole without conio support. For that, use
60 bconsole -n option.
61
62 WARNING : You must be able to execute bconsole and able to read bconsole.conf !
63
64 ################ CONFIGURATION #################################
65
66 You can modify the configuration from brestore itself (if brestore can't find
67 his glade file).
68
69 Example :
70
71 $parameters = {
72                 'mozilla' => 'mozilla',
73                 'bconsole' => '/usr/local/bin/bconsole -n -c /etc/bacula/bconsole.conf',
74                 'bweb' => 'http://localhost/cgi-bin/bweb/bweb.pl',
75                 'connection_string' => 'DBI:mysql:database=bacula;host=127.0.0.1;port=3306',
76                 'username' => 'bacula',
77                 'password' => 'xxxx',
78                 'bsr_dest' => 'file://var/tmp',
79                 'debug' => 0,
80                 'use_ok_bkp_only' => 1,
81                 'default_restore_job' => 'restore'
82               };
83
84 or if you are using bweb http connector
85
86 $parameters = {
87                 'glade_file' => '/home/eric/brestore/brestore-fr.glade',
88                 'mozilla' => 'firefox',
89                 'bconsole' => 'http://bacula-dir/cgi-bin/bweb/bconsole.pl',
90                 'bweb' => 'http://bacula-dir/cgi-bin/bweb/bweb.pl',
91                 'username' => 'bacula',
92                 'connection_string' => 'DBI:Pg:database=bacula;host=95.1.8.205',
93                 'password' => 'xxxx',
94                 'bsr_dest' => '',
95                 'see_all_versions' => '',
96                 'debug' => 1,
97                 'use_ok_bkp_only' => '',
98                 'default_restore_job' => 'Restore'
99               };
100