Using custom S3 instance

So I had trouble setting up S3 backup using the server my provider had available.

They use a custom s3 instance based on:
http://pithos.io/index.html

It is compatible with boto, but in order to have it working with mailinabox, first I had to create /home/user-data/backup/custom.yaml
target: …
target_user: …
target_pass: …
hostname: …

and then i had to add to /etc/boto3.cfg (not sure why its call boto3 when the box is using latets v2 (after the issue is fixed))

[Boto]
endpoints_path = /path/to/custom_endpoint.json

and there the json file
{
“s3”: {
“name”: “s3_hostname”
}
}

I’ll check up tomorrow if I find the backup had any problems.

Hope it helps someone,
Daniel

1 Like