[pkg-bacula-devel] Contribution

Sven Hartge sven at svenhartge.de
Tue Sep 15 13:26:13 BST 2020


Um 14:16 Uhr am 15.09.20 schrieb Mario Pranjic:
> On 9/15/20 12:36 PM, Sven Hartge wrote:

>> You where building just the special Bacula-fork of libs3, a prerequisite
>> for building the cloud-driver itself.
 
> Ok, this is the moment I was looking for facepalm button. :)
> Thanks for clarification, now some things make more sense.
> 
> Now... Is there some README about hot to build cloud driver ontop of
> existing Bacula installation?
> If Bacula 9.6.5 is already in place (Debian 10, backports) and libs3 is
> built and installed (on default location for now, with tendency to be
> moved to proper place or renamed), how do I build cloud driver itself?

Unfortunately: you don't. You have to rebuild bacula as a whole to get
that part.

> I am sure things are clear for you, but for me who jumped in into this,
> that starting place https://www.bacula.org/bacula-release-9-6-5/
> mentions only full Bacula build from src after libs3 is in place.
> 
> Is there a way to build only cloud driver .so and plant it to  Bacula
> plugins directory?

Technically, yes.

You have to get the Debian source package for bacula, change
"--disable-s3" in its debian/rules file to "--with-s3" and let it build
the packages. You won't *use* the packages in the end but you need the
infrastructure this step creates.

Then, from the base directory of the sources do

  make DESTDIR=/tmp -C src/stored install-cloud

That should create /tmp/usr/lib/bacula/bacula-sd-cloud-driver.so which can
then manually copy to your SDs.

Because this is completely outside of the package, you need to maintain
and update that driver manually.

Grüße,
Sven.



More information about the pkg-bacula-devel mailing list