I have a web service application built using NodeJS. I am using mongodb as database.
The whole thing is in another system(A) in the network. Now I need to copy all the data to the mongodb database in my system(B).
Can anyone tell me the whole procedure in detail, like even from where I should execute the commands also. I am a beginner and have very little knowledge about mongodb.
I have a web service application built using NodeJS. I am using mongodb as
Share
You can use the
db.cloneDatabase()command for that (docs).mongoshell from the command line on the destination server by running:mongouse namedb.cloneDatabase("1.2.3.4")