tiredofit / docker-db-backup

Backup multiple database types on a scheduled basis with many customizable options
MIT License
852 stars 125 forks source link

s3 glacier #60

Open arod20832 opened 3 years ago

arod20832 commented 3 years ago

First of all, thanks for such a great tool. Local backups are working great!

I configured a backup job to backup to s3 glacier. The backups are created in the /tmp/backups folder as they should be, but the upload to s3 fails with error:

{"code":"MissingParameterValueException","message":"Required parameter missing: API version","type":"Client"}

According to: https://docs.aws.amazon.com/amazonglacier/latest/dev/api-common-request-headers.html

We are missing header 'x-amz-glacier-version'. The current api version is: 2012-06-01

tiredofit commented 3 years ago

Here's what I propose:

That right there should be easy, however if it differs from how S3 works it would be more challenging as I don't have access to Glacier to do some testing.

I will add this to a develop branch at some point and get your feedback before going any further with investigating alternate solutions.