简体   繁体   English

从node.js备份mongodb数据库

[英]Backup mongodb database from node.js

I've been searching for an easy way for backing up an entire database in a simple step in node.js but surprisingly i din't find an easy to use module for this purpose. 我一直在node.js的简单步骤中寻找一种简单的方法来备份整个数据库,但是令人惊讶的是,我找不到用于此目的的易于使用的模块。

The easiest solution I found on the net is using shelljs to run a shell mongodump command. 我在网上找到的最简单的解决方案是使用shelljs运行shell mongodump命令。

Is there any other way for making this task easy? 还有其他方法可以简化此任务吗?

If you're thinking about backing up to S3, perhaps this would work? 如果您正在考虑备份到S3,也许这样行得通吗? https://github.com/theycallmeswift/node-mongodb-s3-backup https://github.com/theycallmeswift/node-mongodb-s3-backup

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

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