Sign inSign up

timothystewart6/mongo-to-s3

By timothystewart6

Updated almost 4 years ago

Backup Mongo to S3 / Minio

Image
0

50K+

timothystewart6/mongo-to-s3 repository overview

mongo-to-s3

Backup Mongo to S3

Based on Mysql Backup S3

Basic usage

$ docker run \
    -e S3_ACCESS_KEY_ID=key \
    -e S3_SECRET_ACCESS_KEY=secret \
    -e S3_BUCKET=my-bucket \
    -e S3_PREFIX=backup \
    -e MONGO_USER=user \
    -e MONGO_PASSWORD=password \
    -e MONGO_HOST=localhost \
    -e MONGODUMP_DATABASE=todos \
    ghcr.io/techno-tim/mongo-to-s3

Environment Variables

  • MONGODUMP_OPTIONS mongodump options (default: )
  • MONGODUMP_DATABASE list of databases you want to backup required
  • MONGO_HOST the mongo host required
  • MONGO_PORT the mongo port (default: 27017)
  • MONGO_USER the mongo user required
  • MONGO_PASSWORD the mongo password required
  • S3_ACCESS_KEY_ID your AWS access key required
  • S3_SECRET_ACCESS_KEY your AWS secret key required
  • S3_BUCKET your AWS S3 bucket path required
  • S3_PREFIX path prefix in your bucket (default: 'backup')
  • S3_REGION the AWS S3 bucket region (default: eu-west-1)
  • S3_ENDPOINT the AWS Endpoint URL, for S3 Compliant APIs such as minio (default: none)
  • S3_S3V4 set to yes to enable AWS Signature Version 4, required for minio servers (default: no)

Tag summary

Content type

Image

Digest

sha256:0991812e5

Size

202 MB

Last updated

almost 4 years ago

docker pull timothystewart6/mongo-to-s3