Skip to content

A dockerfile to restored mongo dump from s3, a reverse project of mongodump

Notifications You must be signed in to change notification settings

rooseveltlai/mongodumpandrestore-s3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#mongodumpandrestore-s3

A simple docker container to backup and restore mongo to and from s3. Easy to integrate with cron

Installation

docker build -t mongodumpandrestore-s3 git://github.com/rooseveltlai/mongodumpandrestore-s3.git

Usage

Backup to S3:

docker run --rm --link mongo:mongo --env AWS_ACCESS_KEY_ID=123 --env AWS_SECRET_ACCESS_KEY=123 --env S3BUCKET=bucket mongodumpandrestore-s3

Restore (from file 20141017_221942.tar.gz on S3):

docker run --rm --link mongo:mongo --env AWS_ACCESS_KEY_ID=123 --env AWS_SECRET_ACCESS_KEY=123 --env S3BUCKET=bucket mongodumpandrestore-s3 20141017_221942.tar.gz

About

A dockerfile to restored mongo dump from s3, a reverse project of mongodump

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%