Mongo Backup docker that links to a mongo docker and will upload backups to S3 Bucket. Also implemented a list script and a restore script that use the S3 Bucket. Built off of agmangas/mongo-backup-s3.
docker run -d --name <mongo_container_name> -p 27017:271017 mongo
docker run -d --link <mongo_container_name>:mongo
-e MONGO_DB=<mongo_database_name>
-e S3_BUCKET=<S3_bucket_name>
-e AWS_ACCESS_KEY_ID=<S3_key>
-e AWS_SECRET_ACCESS_KEY=<S3_Secret>
--name <backups_container_name> raydavis/aws-mongo-backups
-e BACKUP_INTERVAL=<days_between_backups>
-e BACKUP_TIME=<time_when_backup_will_run> ex: (2:00 <- 2AM or 14:00 <- 2PM)
docker exec <backup_container_name> /app/list.sh
docker exec <backup_container_name> /app/restore.sh <backup_filename_as_display_from_list.sh>