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