https://github.com/doomsower/mongo-to-s3
https://github.com/doomsower/mongo-to-s3
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/doomsower/mongo-to-s3
- Owner: doomsower
- License: apache-2.0
- Created: 2017-04-14T08:22:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-14T10:40:35.000Z (about 9 years ago)
- Last Synced: 2025-03-11T03:42:10.291Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is docker image for backing up wwguide's mongodb to s3
Usage:
```docker
mongodbbackup:
image: 'doomsower/mongo-to-s3'
env_file:
environment:
-
- TZ=Europe/Moscow
- CRON_TX=Europe/Moscow
- CRON_TIME=0 0 * * *
networks:
-
depends_on:
- "mongo"
```
Available variables:
| Variable name | Default value | Description |
|------------------------|----------------|------------------------------------------------------------------|
| CRON_TIME | 0 0 * * * | Cron expression |
| TZ | Europe/Moscow | Cron time zone |
| CRON_TZ | Europe/Moscow | Cron time zone |
| INIT_BACKUP | true | Make backup when container starts? |
| MONGODB_HOST | mongo | MongoDB host (make sure that containers are in the same network) |
| MONGODB_PORT | 27017 | |
| MONGODB_DB | | MongoDB database name |
| S3_BUCKET | | S3 Bucket name |
| AWS_ACCESS_KEY_ID | | AWS Creadentials |
| AWS_SECRET_ACCESS_KEY | | AWS Creadentials |
| AWS_DEFAULT_REGION | | For example, `eu-west-1` |