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 with either PostgreSQL or 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 * We want use Bacula to generate bsr files, at this time, you can't restore
35 files across different Storage (Full on tape, Incr on Disk for example)
37 For the moment, we want to concentrate on having a restoration interface. We
38 don't care about seeing the restoration progress, or anything else.
40 brestore is also available within Bweb.
42 ################ INSTALL #######################################
44 # you can install the user interfact glade file on
45 # /usr/share/brestore or /usr/local/share/brestore
46 mkdir -p /usr/share/brestore
47 install -m 644 -o root -g root brestore.glade /usr/share/brestore
48 install -m 755 -o root -g root brestore.pl /usr/bin
50 # If you don't use bweb and bconsole.pl
51 # you must get Bconsole.pm from bweb modules (bweb/lib/Bconsole.pm)
52 # and install it. If bweb is installed, Bconsole.pm is already
55 install -m 644 -o root -g root Bconsole.pm /usr/share/perl5
57 # copy bsr file directly to your director, use must use scp (or nfs stuff)
58 # if you doesn't want to use this, you can dump the bsr file with "Gen BSR" button.
59 # so you must have an ssh-key exchange. (you can also hack brestore.pl to use
60 # something like '$err = `xterm -e scp $src $1 2>&1`'
62 your_login@yourws:~$ ssh-copy-id -i .ssh/your_pub_key login@bacula-dir
64 # you have to configure brestore preferences.
66 ################ WINDOWS INSTALL ###############################
68 Brestore works on win32 with ActivePerl. To get all libraries, you
69 can install GCSTAR. You have also to copy libglade-2.0.dll
71 ################ INSTALL MODULES ###############################
76 apt-get install libgtk2-gladexml-perl
77 apt-get install libdbd-mysql-perl
78 apt-get install libdbd-pg-perl
79 apt-get install libexpect-perl
80 apt-get install libwww-perl
83 Please contribute, neither of us have a Red Hat to test on :)
86 The generic Way, if those modules aren't packaged by your distro
91 install Gtk2::GladeXML
98 ################ BCONSOLE WITHOUT CONIO ########################
100 If you don't use Bweb, you must use bconsole without conio support. For that, use
103 WARNING : You must be able to execute bconsole and able to read bconsole.conf !
105 ################ CONFIGURATION #################################
107 You can modify the configuration from brestore itself (if brestore can't find
113 'mozilla' => 'mozilla',
114 'bconsole' => '/usr/local/bin/bconsole.noconio -c /etc/bacula/bconsole.conf',
115 'bweb' => 'http://localhost/cgi-bin/bweb/bweb.pl',
116 'connection_string' => 'DBI:mysql:database=bacula;host=127.0.0.1;port=3306',
117 'username' => 'bacula',
118 'password' => 'xxxx',
119 'bsr_dest' => 'file://var/tmp',
121 'use_ok_bkp_only' => 1,
122 'default_restore_job' => 'restore'