Public Repository

Last pushed: 6 months ago
Short Description
A simple Docker image that backs up your Mongo data to an S3 bucket periodically
Full Description

Example Usage

docker run -d --restart=always --name mongo_backup \
  -e ACCESS_KEY=S3_ACCESS_KEY \
  -e SECRET_KEY=S3_SECRET_KEY \
  -e BUCKET=S3_BUCKET_NAME \
  -e MONGO_HOST=mongodb://localhost:27017 \
  -e MONGO_DB=dbname \
  -e CRONTIME='00 00 00 00 * *'

Config

ENV Variable Description Default
ACCESS_KEY S3 Access key Required
SECRET_KEY S3 Secret key Required
BUCKET S3 Bucket name Required
MONGO_HOST Host DB: Eg: mongodb://localhost:27017 Required
MONGO_DB Name of DB to backup Required
ENVIRONMENT Additional param to add to the name of your db Optional
CRONTIME When and how frequently to perform the backup Optional => Default: `00 00 00 ` (once a day at midnight based on PST)*
Docker Pull Command
Owner
aarshaw

Comments (0)