Lambda script for backup mongo DB and pipe to S3.
/bin mongodump binary from mongodb.com. 64bit Amazon AMI
$ npm i moment fs path util
$ cp config.json.sample config.json
Sample config.json
{
"bucket": "xxxx",
"mongo": {
"db": "xxxx",
"username": "xxxx",
"password": "xxxx",
"host": "xxxx:####"
}
}