Browse Source

Enabling AWS Signature v4

- Added env S3_S3V4
pull/60/head
Adam Engebretson 8 years ago
parent
commit
3438bcf270
  1. 1
      mysql-backup-s3/Dockerfile
  2. 1
      mysql-backup-s3/README.md
  3. 4
      mysql-backup-s3/run.sh

1
mysql-backup-s3/Dockerfile

@ -15,6 +15,7 @@ ENV S3_SECRET_ACCESS_KEY **None**
ENV S3_BUCKET **None** ENV S3_BUCKET **None**
ENV S3_REGION us-west-1 ENV S3_REGION us-west-1
ENV S3_ENDPOINT **None** ENV S3_ENDPOINT **None**
ENV S3_S3V4 no
ENV S3_PREFIX 'backup' ENV S3_PREFIX 'backup'
ENV MULTI_FILES no ENV MULTI_FILES no
ENV SCHEDULE **None** ENV SCHEDULE **None**

1
mysql-backup-s3/README.md

@ -22,6 +22,7 @@ $ docker run -e S3_ACCESS_KEY_ID=key -e S3_SECRET_ACCESS_KEY=secret -e S3_BUCKET
- `S3_PREFIX` path prefix in your bucket (default: 'backup') - `S3_PREFIX` path prefix in your bucket (default: 'backup')
- `S3_REGION` the AWS S3 bucket region (default: us-west-1) - `S3_REGION` the AWS S3 bucket region (default: us-west-1)
- `S3_ENDPOINT` the AWS Endpoint URL, for S3 Compliant APIs such as [minio](https://minio.io) (default: none) - `S3_ENDPOINT` the AWS Endpoint URL, for S3 Compliant APIs such as [minio](https://minio.io) (default: none)
- `S3_S3V4` set to `yes` to enable AWS Signature Version 4, required for [minio](https://minio.io) servers (default: no)
- `MULTI_FILES` Allow to have one file per database if set `yes` default: no) - `MULTI_FILES` Allow to have one file per database if set `yes` default: no)
- `SCHEDULE` backup schedule time, see explainatons below - `SCHEDULE` backup schedule time, see explainatons below

4
mysql-backup-s3/run.sh

@ -2,6 +2,10 @@
set -e set -e
if [ "${S3_S3V4}" = "yes"]; then
aws configure set default.s3.signature_version s3v4
fi
if [ "${SCHEDULE}" = "**None**" ]; then if [ "${SCHEDULE}" = "**None**" ]; then
sh backup.sh sh backup.sh
else else

Loading…
Cancel
Save