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: https://s3..amazonaws.com
I generated the necessary keys and added them where needed. For the S3_PATH I have used:
S3_PATH=https://fra1.digitaloceanspaces.com/my-backups
Also tried to do it without the folder /my-backups but I didn’t work either.
Can anyone help me to set this up?
Image: https://hub.docker.com/r/lucaspiller/backup-postgres-s3
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
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:
https://github.com/schickling/dockerfiles/blob/master/postgres-backup-s3/backup.sh
And adjust it accordingly so that it does not use the
aws
cli buts3cmd
instead for example.Alternatively, you could open an idea for that project and suggest this additional feature.
Regards, Bobby