Skip to content
Radosław Korzeniewski edited this page Mar 6, 2015 · 6 revisions

For successful build you should choose a proper Makefile based on your Operating System. You can choose from: Linux, OSX and Solaris. Next you need to setup a Makefile variables inside selected makefile:

BACULASRC = bacula.enterprise.git

is where your Bacula source code is available relative to '..' directory.

plugindir = /opt/bacula/plugins
sbindir = /opt/bacula/bin
libdir = /opt/bacula/lib64
confdir = /opt/bacula/etc

are where you want to install pgsql plugin and utilities.

Next you need to configure and compile Bacula, because plugin compilation require this. Then finally standard:

$ make clean
$ make all
$ sudo make install 

After make install you should have a plugin (pgsql-fd.so) and related utilities (pgsql-archlog, pgsql-restore) installed on $plugindir and $sbindir. At $confdir you should get an example config file - pgsql.conf. Before usage you should edit this file for your requirements.

Clone this wiki locally