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 # to copy bsr file directly to your director, use must use scp (or nfs stuff)
50 # if you doesn't want to use this, you can dump the bsr file with "Gen BSR" button.
51 # so you must have an ssh-key exchange. (you can also hack brestore.pl to use
52 # something like '$err = `xterm -e scp $src $1 2>&1`'
54 your_login@yourws:~$ ssh-copy-id -i .ssh/your_pub_key login@bacula-dir
56 # you have to configure brestore preferences.
58 ################ INSTALL MODULES ###############################
63 apt-get install libgtk2-gladexml-perl
64 apt-get install libdbd-mysql-perl
65 apt-get install libdbd-pg-perl
66 apt-get install libexpect-perl
69 Please contribute, neither of us have a Red Hat to test on :)
72 The generic Way, if those modules aren't packaged by your distro
77 install Gtk2::GladeXML
83 ################ BCONSOLE WITHOUT CONIO ########################
85 You must use bconsole without conio support. For that, use
88 WARNING : You must be able to execute bconsole and able to read bconsole.conf !
90 ################ CONFIGURATION #################################
92 You can make configuration from brestore himself (if brestore can't find
98 'mozilla' => 'mozilla',
99 'bconsole' => '/usr/local/bin/bconsole.noconio -c /etc/bacula/bconsole.conf',
100 'bweb' => 'http://localhost/cgi-bin/bweb/bweb.pl',
101 'connection_string' => 'DBI:mysql:database=bacula;host=127.0.0.1;port=3306',
102 'username' => 'bacula',
103 'password' => 'xxxx',
104 'bsr_dest' => 'file://var/tmp',
106 'use_ok_bkp_only' => 1,
107 'default_restore_job' => 'restore'