--- trunk/doc/Search.pm 2005/08/30 09:55:43 96 +++ trunk/doc/Search.pm 2005/10/13 19:03:32 198 @@ -16,7 +16,8 @@ =item * archive selected backups (per host, share and increment) to archival -medium (CD, DVD, tape etc.) +medium (CD, DVD, tape etc.) with rich descriptions, archival locations, +multiple copies and so on. =back @@ -31,19 +32,17 @@ # apt-get install postgresql # apt-get install hyperestraier libestraier-dev libqdbm-dev -Now you can skip to installation of HyperEstraier perl bindings below. +Now you can skip to installation of L below. If you don't have pre-packaged binaries for your installation, you will need to install additional packages by hand. -=over 4 - -=item PostgreSQL installation +=head3 PostgreSQL You can use packages provided by your distribution or follow installation instructions on PostgreSQL site. -=item QDBM installation +=head3 QDBM First, you need qdbm on which HyperEstraier depends. Installation is simple. @@ -53,7 +52,7 @@ $ make $ sudo make install -=item HyperEstraier installation +=head3 HyperEstraier Also quite simple. @@ -63,8 +62,12 @@ $ make $ sudo make install -Then you will have to install perl bindings for HyperEstraier. This might take -a bit more work. You will need to have C installed beforehand. +Then you will have to install perl bindings for HyperEstraier. + +=head3 HyperEstraier perl bindings + +This might take a bit more work. You will need to have C and C installed +before you can install perl bindings. $ tar xvfz hyper_estraier_wrappers-0.0.10.tar.gz $ cd swig_hest/perl/ @@ -98,22 +101,88 @@ $ make $ sudo make install +=head3 CPAN modules + +You will also need a few additional cpan modules + +=over 4 + +=item File::Pid + +=item Spreadsheet::WriteExcel + +=item Term::Menus +=item XML::Writer + =back -=head1 Creation of initial data +Last module, C is needed only if you want to use +C to generate Excel reports from your backup data. + +Easiest way to install them is using C shell. + + $ sudo cpan File::Pid Spreadsheet::WriteExcel + +=head1 Creation of initial database Once you have all components installed, you should initially create data about increments in RDBMS and full-text search engine index. - $ sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb +First, edit C and setup C to valid perl DSN (for example, +C and C to database user which has priviledges +over that database. You might need to add additional directives in PostgreSQL's +C so that selected user can be connected without password (I know, it's not +perfect, but I trust local users on backuppc machine). + +Then, create new database for backuppc. + + $ createdb backuppc + +Then invoke C for the first time with argument to create database +schema: -You can also force full-text reindex by C<-i> flag. + $ sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c -B. +You can also force full-text reindex by C<-i> flag. This will add all files which are in +database but for some reason are missing in full-text index. + +Now, you can setup cron job which will daily check your backups and update database +and full-text index. This is as simple as invoking + + /data/backuppc/bin/BackupPC_updatedb + +As C user and redirecting output to log file. + +B. Now that you finished installation, you can select new options from menu on the left and example search and archival. +=head1 Reporting in Excel + +Often, it is useful to be able to present report about your BackupPC hosts, number +of snapshots, total size and other useful info. While all those information can +be accessed using web browser, for analysis it's useful to have them in spreadsheet +form. With this data, you can monitor changes on your backup cycle, effects of changes +on your server or network to your BackupPC installation and so on. + +You can create Excel spreadsheet (which works perfectly with Gnumeric also) using +following command: + + $ sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report + +=head1 Additional requirements + +You will also need several other command-line utilities to make +C run. Those include: + +=over 4 + +=item mkisofs + +=back + + =head1 Related projects BackupPC allready has archival host which might suit your needs better (and