Mongodump / mongorestore by NodeJS or Mongoose

I wonder if it is possible to run mongodump / mongorestore from inside nodejs. Probably, in fact, this is not a mongoose, but in fact it is not what a mongoose is. But I wonder if there is a way to execute this command from the mongodb nodejs driver.

It looks like I can do this as a last resort: How to execute the mongodump command programmatically from node.js?

+5
source share
2 answers

When you say 'from node.js', I assume that you mean calling the command mongodump/mongostorefrom your node.js application.

mongodump mongostore . " " node.js - , .

, child_process.spawn, node.js.

" ", , . , mongodb node.js driver. , , .

. , , , . , (, - ) , .

+6

All Articles