I had success by using following configuration, all on a fresh setup centos7:

$ cat bareos-sd.d/device/droplet/droplet.profile
use_https = false
host = <bucketname>.s3-eu-central-1.amazonaws.com
access_key = my-access-key
secret_key = my-private-key
pricing_dir = ""
backend = s3
aws_auth_sign_version = 4

$ cat bareos-sd.d/device/S3_ObjectStorage.conf
Device {
  Name = S3_ObjectStorage
  Media Type = s3bucket
  Archive Device = S3 Object Storage


  Device Options = 
"profile=/etc/bareos/bareos-sd.d/device/droplet/droplet.profile,bucket=<bucketname>,iothreads=2,location=eu-central-1"
  Device Type = droplet
  LabelMedia = yes                    # lets Bareos label unlabeled media
  Random Access = yes
  AutomaticMount = yes                # when device opened, read it
  RemovableMedia = no
  AlwaysOpen = no
  Description = "S3 Object device. A connecting Director must have the same 
Name and MediaType."
  Maximum File Size = 200000000       # 200 MB (Allows for seeking to small 
portions of the Volume)
}

$ cat bareos-dir.d/storage/s3bucket.conf
Storage {
  Name = s3bucket
  Address  = centos7-droplet-test
  Password = #####
  Device = S3_ObjectStorage
  Media Type = s3bucket
}

I had the same error @Jan had with his https configuration because i copied the 
whole url into the configuration. Now, I can write to the bucket, even though 
it is really slow (14 chunks with 300B each after 30 minutes of sd writing). 

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to