https://github.com/byrnedo/mongo-to-s3
Backup mongodb databases to an s3 bucket
https://github.com/byrnedo/mongo-to-s3
backup-utility docker mongodb s3
Last synced: about 1 month ago
JSON representation
Backup mongodb databases to an s3 bucket
- Host: GitHub
- URL: https://github.com/byrnedo/mongo-to-s3
- Owner: byrnedo
- Created: 2017-12-07T10:46:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-07T11:38:32.000Z (over 7 years ago)
- Last Synced: 2025-01-19T19:49:00.918Z (3 months ago)
- Topics: backup-utility, docker, mongodb, s3
- Language: Shell
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mongo-to-s3
Backup Mongo to S3
Based on [Mysql Backup S3](https://hub.docker.com/r/schickling/mysql-backup-s3/)
## Basic usage
```sh
$ 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 byrnedo/mongo-to-s3
```## Environment variables
- `MONGODUMP_OPTIONS` mongodump options (default: )
- `MONGODUMP_DATABASE` list of databases you want to backup
- `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](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)