Questions tagged [mongorestore]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

MongoDB replica after restore

I've got a PSA mongodb which I'm restoring starting from a backup made on a standalone installation. I set the PRIMARY machine in the --host parameter but the replication does not start on the ...
1
vote
0answers
23 views

How to check progress with mongorestore

I'm using mongorestore to move a dump from a location to another. I've to use the quiet flag and I'm on Windows. How can I check for restore progress? Actually I can only check the size of the db on ...
0
votes
1answer
19 views

using mongorestore for a db present in my computer

I just started using mongodb so my question might be a little basic. I have a folder with the collections I want to restore(this was a zip file I downloaded from my email). How do I use mongorestore ...
0
votes
1answer
17 views

mongodump and restore in single command

How to perform mongo DB dump and restore in a single command, by providing source and sink DB and collection name separately? I understand we can do mongodump and then mongorestore but if I need to ...
2
votes
1answer
1k views

Failed to restored indexes using mongorestore - MongoDB

Note: I already know about --noIndexRestore I have an org collection with the following document structure, { "_id" : ObjectId("5cc2bf9f5ca45131b8f8e427"), "name" : "National", "parent" :...
1
vote
0answers
470 views

mongorestore Failed: an inserted document is too large

I have my remote mongodb database backed up and downloaded it to my local machine at /var/www/mongobackups3/ So I do this to insert/ restore it to the mongodb in my local machine: $ mongorestore /...
2
votes
1answer
185 views

mongorestore from multiple dumps

I have a mongo-database where existing entries never change but new entries are added every day. I have ~1000 dumps, each is the new data that was added on the corresponding day. I.e. I have the ...
1
vote
0answers
8 views

Mongodb - Small and Larger deployment

I read the following information from "https://docs.mongodb.com/manual/core/backups/" "mongodump and mongorestore are simple and efficient tools for backing up and restoring small MongoDB ...
2
votes
3answers
3k views

MongoDB - Mongorestore is not working as expected

A Very Good Day, I have the user in the mongodb like below who has the superuser privileges (I confirmed the role setting using show users command) { "_id" : "admin.mongoadmin", "user" : "...
1
vote
1answer
2k views

MongoDB merge two collections and drop documents with same value in field

In my database I have two collections, but some documents were added (possibly) at different times to both collections. I could use mongodump and then mongorestore for merging. But then I have the ...
1
vote
1answer
117 views

Amount of Data transferred out in mongorestore

I'm using MongoDB version 4 Consider I have a database with dataSize 15GB, storageSize 10GB. After I mongodump --gzip it, the file created is of 5GB. Now, If I'm restoring it to a remote machine (M2)...
1
vote
1answer
1k views

How to restore Mongo DB tar.gz archive

Using the Mongo DB Atlas cloud service (MongoDB Version: 3.4.16), the below backup archive of a MongDB was generated: Cluster0-shard-0-1531635127-5b4b0df33b34b92b0f50a045.tar.gz In this file I can ...
1
vote
1answer
2k views

Mongodb _id Value and Indexes Are Lost During Mongorestore

Steps I used: mongodump copy dump folder to another computer (for each collection I get .bson and metadata files) mongorestore myDumpFolder I noticed the indexes are lost and _id has new ...
1
vote
1answer
645 views

How to properly use moveChunk when chunks of certain range needs to be moved?

A MongoDB 3.6.3 database has two shards and a mongodump file with partial data of one collection needs to be restored. The first shard is named "fast" while second "slow". The idea is to restore the ...
1
vote
3answers
4k views

Failed to import a mongodb database with duplicate fields

I'm trying to import a mongodb database and I've been using the mongorestore command, the import starts without problems until it gives the error: Failed: dbprod.mys_account: error creating collection ...
0
votes
1answer
318 views

mongodump sharded collection size is smaller after restoring

I need to change shard index from range to hashed in a sharded collection. So I need to mongodump and restore the collection. I have 3 shards with 3 replica sets.MongoDB version is: 3.2.11 I started ...
4
votes
2answers
4k views

MongoDB restore with replica set

I have MongoDB setup like this: Primary | Server1 -----------+--------- Secondary | Server2 -----------+--------- Arbiter | Server3 -----------+--------- Backup | Server4 I ...
4
votes
2answers
18k views

MongoDB import bson files from a folder

I am unable to import (.bson) file on my computer to MongoDB database .I have been trying below commands : 1)mongorestore -d demo -c dcoll C:\data\dump\twitter\tweets.bson and 2)mongorestore -d ...
0
votes
1answer
568 views

Assertion failure _state.get() error in MongoDB during mongorestore

I would like to say i am newbie in mongodb,today i have tried to restore dump file .I am getting the Assertion failure _state.get() during mongorestore dump in my mongod and process has stuck at that ...