简体   繁体   English

如何在 node.js 中从 AWS Lambda function 制作 mongodump?

[英]How to make mongodump from AWS Lambda function in node.js?

I need to dump mongo data base from AWS Lambda function and store the dump folder on AWS S3 with node.js.我需要从 AWS Lambda function 转储 mongo 数据库,并使用 node.js 将转储文件夹存储在 AWS S3 上。 How can I make it?我怎样才能做到?

Check this project on github: lambda-mongocluster-s3在 github 上检查这个项目: lambda-mongocluster-s3

It includes the mongodump binary, where you can specify the MONGODUMP_OPTIONS without the --out param it'll zip the output and store it on S3它包括 mongodump 二进制文件,您可以在其中指定MONGODUMP_OPTIONS而不使用--out参数,它将 zip output 并将其存储在 S3

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM