top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

MongoDB: How to restore archive datebase from other machine to local machine?

+1 vote
330 views

I try copy datebase vk_market from remote host to vk_market_test on localhost over network:

# ssh user@host mongodump --archive --db=vk_market | mongorestore --archive --drop --db=vk_market_test

But target datebase vk_market_test do not created. Any pointer?

posted Jun 16, 2016 by Navneet

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

wish to restore mongodb from a snapshot backup taken using a third party solution, Netbackup. Could you assist to provide the step by step guide on how to go about this?

Currently, I have restored the backup taken to a file system level n a different host and have tried to modify the content of mongo.conf.

I have been trying to start the mongodb services but it is not coming up.

+3 votes

while i am connecting from my windows machine to mongoDB server running on remote windows machine.
I am getting the following error.

MongoDB shell version: 3.0.4
connecting to: 192.168.0.103:27017/test
2015-06-20T15:16:52.584+0530 W NETWORK Failed to connect to 192.168.0.103:27017
after 5000 milliseconds, giving up.
2015-06-20T15:16:52.589+0530 E QUERY Error: couldn't connect to server 192.16
8.0.103:27017 (192.168.0.103), connection attempt failed
at connect (src/mongo/shell/mongo.js:181:14)
at (connect):1:6 at src/mongo/shell/mongo.js:181
exception: connect failed

0 votes

I copied underlying MongoDb files to remote server and wondering how I can reconnect copied files (or merger them) to existing mongodb instance on the remote server.

I plan to do this operation in the future, so I appreciate how to set up this unusual update in efficient way.

...