How to use S3 based Docker Postgres Backup with Digital Ocean Spaces?

Posted March 15, 2021 321 views
Object StorageDigitalOcean Spaces

Hey guys,

I am trying to use DO spaces with this Docker Image to back up my Postgres databases. Unfortunately, I always get the error

Invalid endpoint:

I generated the necessary keys and added them where needed. For the S3_PATH I have used:


Also tried to do it without the folder /my-backups but I didn’t work either.

Can anyone help me to set this up?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there,

I believe that this might not work out of the box without some modifications.

I think that you need to change the upload command on line 66 here:

And adjust it accordingly so that it does not use the aws cli but s3cmd instead for example.

Alternatively, you could open an idea for that project and suggest this additional feature.