]> git.sur5r.net Git - bacula/bacula/blob - gui/brestore/INSTALL
ebl add .mo file like in other dir
[bacula/bacula] / gui / brestore / INSTALL
1 ################ INSTALL NOTES FOR BRESTORE ####################
2
3 # you can install the user interface glade file in
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 # To copy the bsr file where the director can access it, we use scp (or nfs stuff)
18 # if you don'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 (RPM) way:
43 perl, perl-DBI, perl-DBD-mysql, perl-DBD-Pg, perl-Expect, perl-libwww-perl
44 perl-Gtk2-GladeXML perl-Gtk2
45
46 The following will probably also be needed by rpms (at least on SuSE):
47 perl-Cairo, perl-ExtUtils-Depends, perl-ExtUtils-PkgConfig, perl-Glib
48
49 The generic Way, if those modules aren't packaged by your distro
50 perl -MCPAN -e shell
51 install Gtk2
52 install Expect
53 install Gtk2::GladeXML
54 install LWP
55
56 install DBD::mysql
57 or
58 install DBD::Pg
59
60 ################ BCONSOLE WITHOUT CONIO ########################
61
62 If you don't use Bweb, you must use bconsole without conio support. For that, use
63 bconsole -n option.
64
65 WARNING : You must be able to execute bconsole and able to read bconsole.conf !
66
67 ################ CONFIGURATION #################################
68
69 You can modify the configuration from brestore itself (if brestore can't find
70 his glade file).
71
72 Example :
73
74 $parameters = {
75                 'mozilla' => 'mozilla',
76                 'bconsole' => '/usr/local/bin/bconsole -n -c /etc/bacula/bconsole.conf',
77                 'bweb' => 'http://localhost/cgi-bin/bweb/bweb.pl',
78                 'connection_string' => 'DBI:mysql:database=bacula;host=127.0.0.1;port=3306',
79                 'username' => 'bacula',
80                 'password' => 'xxxx',
81                 'bsr_dest' => 'file://var/tmp',
82                 'debug' => 0,
83                 'use_ok_bkp_only' => 1,
84                 'default_restore_job' => 'restore'
85               };
86
87 or if you are using bweb http connector
88
89 $parameters = {
90                 'glade_file' => '/home/eric/brestore/brestore-fr.glade',
91                 'mozilla' => 'firefox',
92                 'bconsole' => 'http://bacula-dir/cgi-bin/bweb/bconsole.pl',
93                 'bweb' => 'http://bacula-dir/cgi-bin/bweb/bweb.pl',
94                 'username' => 'bacula',
95                 'connection_string' => 'DBI:Pg:database=bacula;host=95.1.8.205',
96                 'password' => 'xxxx',
97                 'bsr_dest' => '',
98                 'see_all_versions' => '',
99                 'debug' => 1,
100                 'use_ok_bkp_only' => '',
101                 'default_restore_job' => 'Restore'
102               };