top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Re-syncing MongoDB files after copying them to other MongoDB instance

0 votes
275 views

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.

posted Feb 28, 2016 by anonymous

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

Similar Questions
+1 vote

I generated some GridFs data on local MongoDB but I want to export these files only to production MongoDB.
I just have uploadtime field to query these files. Is there some option in Export to JSON by mongoexport both files and chunks after time stamp.

+1 vote

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?

+1 vote

I have searched the method and found that GridFS might help. I refer the tutorial as below:
http://api.mongodb.com/python/current/examples/gridfs.html

But there is one problem, I dont know how to insert the local address to the code. It means that I would like to specify the local address of a pdf file and upload it to the database, but I dont know how to do it.

I also try to add the address of file into "put()" as:

a = fs.put("C:myfile.pdf")

But it doesnt work, if you know the answer, please let me know.

+1 vote

How to connect MongoDB data which is stored in remote server(I have remote server details) locally?And Is there in Mongo UI to connect or only commands will help?If so please give some links to run commands.

0 votes

MONGODB 3.2.8, WIREDTIGER STORAGE ENGINE
SINGLE COLLECTION HAS MORE THAN 500G, WHETHER IT NEEDS TO BE SEPARATED?

WHAT PARAMETER SHOULD BE ADJUSTED ?

...