[pkg-bacula-devel] Contribution

Mario Pranjic mario at pranjic.no
Wed Sep 16 09:50:02 BST 2020


On 9/15/20 6:19 PM, Mario Pranjic wrote:
> Hi,
>
> Just a short status:
>
> mario at backup-dev:/tmp$ tree usr/
> usr/
> └── lib
>     ├── bacula-sd-cloud-driver-9.6.5.so
>     └── bacula-sd-cloud-driver.so -> bacula-sd-cloud-driver-9.6.5.so
>
> Have to see if it is usable in Bacula on that machine.
> Will get back with feedback during the evening.
>

So.. module loaded, no errors.
I set plugin:

root at backup-dev:~# ls -l /etc/bacula/plugins/
total 656
-rwxr-x--- 1 bacula bacula 670360 Sep 15 18:17
bacula-sd-cloud-driver-9.6.5.so
lrwxrwxrwx 1 bacula bacula     31 Sep 15 21:08 bacula-sd-cloud-driver.so
-> bacula-sd-cloud-driver-9.6.5.so

And added to bacula.sd.conf:
  PluginDirectory = "/etc/bacula/plugins"
(under Storage block)

Now, as for definitions, I added:
Device {
  Name = CloudStorage
  Device Type = Cloud
  Cloud = MyCloud
  Archive Device = /bacula/backup
  Maximum Part Size = 10 MB
  Media Type = CloudType
  LabelMedia = yes
  Random Access = yes
  AutomaticMount = yes
  RemovableMedia = no
  AlwaysOpen = no
}

Cloud {
  Name = MyCloud
  Driver = "S3"
  HostName = "s3.amazonaws.com"
  BucketName = "MYBUCKETNAME"
  AccessKey = "KEY"
  SecretKey = "mySECKEY"
  Protocol = HTTPS
  UriStyle = VirtualHost
  Truncate Cache = No
  Upload = EachPart
  Region = "useast1"
  MaximumUploadBandwidth = 5MB/s
}

No errors nor warning (finally), but now I have to see where to change
for files to be actually sent to CloudStorage device and not default
File device.
I thought I have a good overview where to change what in config files. I
was, obviously, wrong. :)

I will dig a bit through relation between Pool definition, Job
definitions, Devices etc... to figure it out.

I wrote my own Ansible automation which will provision Bacula server and
all defined clients in one go.

https://gitlab.com/strsljen/bacula-ansible

(I put some generic Bacula info in README since I usually have to spend
few hours explaining to organisations what is Bacula and why would they
even consider it.
Just scroll down to Ansible config parts if you need it).

This is what I'd like to improve. No special hardening is done, a very
simple setup to begin with (Bacula director and SD on one machine and
bunch of clients).
But, first thins is first... Let me figure out this config part.
I'd like to see Bacula actually starts writing to S3 bucket and verify
this setup works as is.

Then we can agree on some next steps and how to proceed.


Best regards,


Mario.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-bacula-devel/attachments/20200916/fe80acf2/attachment.sig>


More information about the pkg-bacula-devel mailing list