16 |
=item * |
=item * |
17 |
|
|
18 |
archive selected backups (per host, share and increment) to archival |
archive selected backups (per host, share and increment) to archival |
19 |
medium (CD, DVD, tape etc.) |
medium (CD, DVD, tape etc.) with rich descriptions, archival locations, |
20 |
|
multiple copies and so on. |
21 |
|
|
22 |
=back |
=back |
23 |
|
|
32 |
# apt-get install postgresql |
# apt-get install postgresql |
33 |
# apt-get install hyperestraier libestraier-dev libqdbm-dev |
# apt-get install hyperestraier libestraier-dev libqdbm-dev |
34 |
|
|
35 |
Now you can skip to installation of HyperEstraier perl bindings below. |
Now you can skip to installation of L<HyperEstraier perl bindings> below. |
36 |
|
|
37 |
If you don't have pre-packaged binaries for your installation, you will |
If you don't have pre-packaged binaries for your installation, you will |
38 |
need to install additional packages by hand. |
need to install additional packages by hand. |
39 |
|
|
40 |
=over 4 |
=head3 PostgreSQL |
|
|
|
|
=item PostgreSQL installation |
|
41 |
|
|
42 |
You can use packages provided by your distribution or follow installation |
You can use packages provided by your distribution or follow installation |
43 |
instructions on PostgreSQL site. |
instructions on PostgreSQL site. |
44 |
|
|
45 |
=item QDBM installation |
=head3 QDBM |
46 |
|
|
47 |
First, you need qdbm on which HyperEstraier depends. Installation is simple. |
First, you need qdbm on which HyperEstraier depends. Installation is simple. |
48 |
|
|
52 |
$ make |
$ make |
53 |
$ sudo make install |
$ sudo make install |
54 |
|
|
55 |
=item HyperEstraier installation |
=head3 HyperEstraier |
56 |
|
|
57 |
Also quite simple. |
Also quite simple. |
58 |
|
|
62 |
$ make |
$ make |
63 |
$ sudo make install |
$ sudo make install |
64 |
|
|
65 |
Then you will have to install perl bindings for HyperEstraier. This might take |
Then you will have to install perl bindings for HyperEstraier. |
66 |
a bit more work. You will need to have C<swig> installed beforehand. |
|
67 |
|
=head3 HyperEstraier perl bindings |
68 |
|
|
69 |
|
This might take a bit more work. You will need to have C<swig> and C<g++> installed |
70 |
|
before you can install perl bindings. |
71 |
|
|
72 |
$ tar xvfz hyper_estraier_wrappers-0.0.10.tar.gz |
$ tar xvfz hyper_estraier_wrappers-0.0.10.tar.gz |
73 |
$ cd swig_hest/perl/ |
$ cd swig_hest/perl/ |
101 |
$ make |
$ make |
102 |
$ sudo make install |
$ sudo make install |
103 |
|
|
104 |
|
=head3 CPAN modules |
105 |
|
|
106 |
|
You will also need a few additional cpan modules |
107 |
|
|
108 |
|
=over 4 |
109 |
|
|
110 |
|
=item File::Pid |
111 |
|
|
112 |
=back |
=back |
113 |
|
|
114 |
=head1 Creation of initial data |
Easiest way to install them is using C<cpan> shell. |
115 |
|
|
116 |
|
$ sudo cpan File::Pid |
117 |
|
|
118 |
|
=head1 Creation of initial database |
119 |
|
|
120 |
Once you have all components installed, you should initially create data |
Once you have all components installed, you should initially create data |
121 |
about increments in RDBMS and full-text search engine index. |
about increments in RDBMS and full-text search engine index. |
122 |
|
|
123 |
$ sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb |
First, edit C<config.pl> and setup C<SearchDSN> to valid perl DSN (for example, |
124 |
|
C<dbi:Pg:dbname=backuppc> and C<SearchUser> to database user which has priviledges |
125 |
|
over that database. You might need to add additional directives in PostgreSQL's |
126 |
|
C<pg_hba.conf> so that selected user can be connected without password (I know, it's not |
127 |
|
perfect, but I trust local users on backuppc machine). |
128 |
|
|
129 |
|
Then, create new database for backuppc. |
130 |
|
|
131 |
|
$ createdb backuppc |
132 |
|
|
133 |
|
Then invoke C<BackupPC_updatedb> for the first time with argument to create database |
134 |
|
schema: |
135 |
|
|
136 |
|
$ sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c |
137 |
|
|
138 |
|
You can also force full-text reindex by C<-i> flag. This will add all files which are in |
139 |
|
database but for some reason are missing in full-text index. |
140 |
|
|
141 |
|
Now, you can setup cron job which will daily check your backups and update database |
142 |
|
and full-text index. This is as simple as invoking |
143 |
|
|
144 |
|
/data/backuppc/bin/BackupPC_updatedb |
145 |
|
|
146 |
You can also force full-text reindex by C<-i> flag. |
As C<backuppc> user and redirecting output to log file. |
147 |
|
|
148 |
B<Documentation is incomplete>. |
B<Documentation is still incomplete>. |
149 |
|
|
150 |
Now that you finished installation, you can select new options from |
Now that you finished installation, you can select new options from |
151 |
menu on the left and example search and archival. |
menu on the left and example search and archival. |