1 ################################################################
2 # brestore -- a bacula perl interface #
3 ################################################################
5 As we felt a need for a restoration GUI for bacula, we developed a simple
7 It has the following features :
9 * Direct SQL access to the database for good performance
11 * Fast Time Navigation (switch almost instantaneously between the different
12 versions of a directory, by changing the date from a list)
14 * Possibility to choose a selected file, then browse all its available
15 versions, and see directly if these versions are online in a library or
18 * Simple restoration by the generation of a BSR file
20 * Works indifferently with postgresql and mysql
22 We have a working (if a bit unpolished) version ready, and think it is time for
23 us to publish it and have user and Kern feedback.
27 * We want to add some other features such as : the user has selected a FD
28 and a date, we want to display the list of media requested and their
31 * Plenty of features. As we don't have lots of imagination. Don't hesitate
32 to suggest us your ideas ...
34 For the moment, we want to concentrate on having a restoration interface. We
35 don't care about seeing the restoration progress, or anything else.
37 These tools are available with Bweb.
39 ################ INSTALL #######################################
41 # you can put glade file on /usr/share/brestore or /usr/local/share/brestore
42 mkdir -p /usr/share/brestore
43 install -m 644 -o root -g root brestore.glade /usr/share/brestore
44 install -m 755 -o root -g root brestore.pl /usr/bin
46 # you must get Bconsole.pm from bweb modules (bweb/lib/Bconsole.pm)
47 install -m 644 -o root -g root Bconsole.pm /usr/share/perl5
49 ################ INSTALL MODULES ###############################
54 apt-get install libgtk2-gladexml-perl
55 apt-get install libdbd-mysql-perl
56 apt-get install libdbd-pg-perl
57 apt-get install libexpect-perl
60 Please contribute, neither of us have a Red Hat to test on :)
63 The generic Way, if those modules aren't packaged by your distro
68 install Gtk2::GladeXML
74 ################ BCONSOLE WITHOUT CONIO ########################
76 For now, we have problems interfacing with bconsole when it's using conio. So
77 you'll have to disable it.
79 ./configure <your-other-options> --disable-conio
85 cp bconsole <your_destination>
87 Of course, you don't need to overwrite your current bconsole. You can put this
88 one wherever you like and dedicate it to brestore.
90 WARNING : You must be able to execute bconsole and able to read bconsole.conf !
92 ################ CONFIGURATION #################################
94 You can make configuration from brestore himself (if brestore can find
100 'mozilla' => 'mozilla',
101 'bconsole' => '/usr/local/bin/bconsole.noconio -c /etc/bacula/bconsole.conf',
102 'bweb' => 'http://localhost/cgi-bin/bweb/bweb.pl',
103 'connection_string' => 'DBI:mysql:database=bacula;host=127.0.0.1;port=3306',
104 'username' => 'bacula',
105 'password' => 'xxxx',
106 'bsr_dest' => 'file://var/tmp',
108 'use_ok_bkp_only' => 1,
109 'default_restore_job' => 'restore'