mongodump Questions

5

I was trying to backup my mongo database on the product sever.and then restore then back to the staging server. and here comes some problem, there are a lot of collections in db, I want to igonre s...
Clamshell asked 12/4, 2013 at 3:22

3

Solved

Our mongodb.conf of version 3.06 and data files only 240 MB in size. Network is reliable at this timestamps. # mongod.conf # Where to store the data. # Note: if you run mongodb as a non-root use...
Xanthochroism asked 16/3, 2016 at 9:43

2

Solved

I have a strange problem with my MongoDB Replica Set backup. I have 2 servers (one primary and one secondary) and I run a backup task every 2 hours. I use this: mongodump.exe --db MyBase --out "d:...
Oldie asked 5/3, 2014 at 10:39

2

Solved

I have MongoDB v3.2.6 installed on my mac macOs High Sierra v10.13.1 and I am trying to make a backup before I upgrade. I have an instance of $ mongod running in one window using defaut db locatio...
Cowitch asked 25/12, 2017 at 0:59

1

Solved

I'm trying to export one of my mongo collections using this command: "C:\Program Files\MongoDB\Server\3.2\bin\mongodump" -h 127.0.0.1 --port 3001 -d meteor I have a BSON file with my db collecti...
Starknaked asked 21/11, 2017 at 15:0

2

Solved

I'm trying to restore a mongodump to a differently named database (which should be possible via --db <dbname> switch). My working directory contains a single dump folder, which contains a si...
Cosimo asked 13/1, 2015 at 9:52

1

In trying to run a database dump using a query from a db of about 5 billion, the progress bar times seem to indicate that this dump won't finish in any reasonable time (100+ days). The query also f...
Gallegos asked 19/1, 2015 at 3:41

3

Solved

My customer uses mongoDB 2.4 and as there are some limitations with this version, we have give them the option to upgrade to Latest stable mongoDB 3.4.5. Initial testing of using mongodump in Mo...
Nichollenicholls asked 15/6, 2017 at 8:51

2

Solved

I've used mongorestore to restore a database but I'm getting an error that the index already exists when I try to run my application. I know of the function db.collection.dropIndex() but is there ...
Seleucid asked 16/6, 2014 at 10:35

2

Solved

If I dump a database like so: mongodump --archive=out.mdb Is there some way to convert out.mdb to a flat JSON file? If so, how? (for example, if I just wanted to restore a single document)
Mellow asked 29/10, 2016 at 1:4

0

I am trying to upgrade from the mongodb sandbox option onto a shared cluster, and to keep my current data I have to do a mongodump and mongorestore to migrate the old data onto the new database. T...
Driblet asked 9/2, 2017 at 14:51

1

I hope you can help me. It is a question that was asked before, but I have tried all solutions, and simply cannot get it right. I have spend quite some time researching before posting this questi...
Fillagree asked 13/11, 2015 at 8:31

1

Is there a way to extract data from that archive without mongorestore?
Mavis asked 23/6, 2016 at 14:37

6

I've found plenty of good instructions on how to use mongodump and mongorestore, to back up my meteor production server and restore the backup if need be: meteor mongo --url myApp.meteor.com mong...
Pratique asked 21/10, 2013 at 21:59

3

Solved

Perhaps I have a complete misunderstanding of how mongodump is supposed to work, but I can't seem to get it to do anything besides returning a JavaScript execution failed: SyntaxError: Unexpected i...
Lengel asked 25/7, 2013 at 5:39

1

Solved

Ive got a problem concerning the mongodump function provided in mongodb. When the below code is run on mongodb shell it doesnt respond, Mongodump --db database1 --out path:
Ablution asked 16/2, 2016 at 15:52

1

Solved

I have a .bson file from a MongoDB dump. The dump also produces a .metadata.json file that seems to contain index definitions. { "options": {}, "indexes": [ { "v": 1, "key": { "_id": 1 }, ...
Transfusion asked 6/2, 2016 at 19:2

6

Solved

I created a dump with mongodump on computer A (ubuntu 12.04 server). I moved it to computer B (ubuntu 12.04 server) and typed: mongorestore -db db_name --drop db_dump_path It failed and it rep...
Melissamelisse asked 30/9, 2013 at 17:56

3

I have a MongoDB collection backup containing many small documents. The back up was produced by mongodump, but when I try to import it using mongorestore I get an error: AssertionException handl...
Fireside asked 1/6, 2015 at 5:52

2

Solved

The following is the structure of the documents: { "_id" : ObjectId("4fccd39c9d8597a034d183b1"), "image" : "23ef514f8201320c2d7253e4bf28edf6", "owner" : "1b8c335c902ac4ab128ee8ed773bee04", "pa...
Acrimonious asked 6/11, 2013 at 6:45

1

I'm running the following command on a box that is part of a sharded replicate set. I'm just trying to export from this specific shard, I will run the same command on the other shard as well. When...
Gish asked 16/9, 2013 at 20:34

1

Solved

I have a mongod server running. Each day, I am executing the mongodump in order to have a backup. The problem is that the mongodump will take a lot of resources and it will slow down the server (th...
Stuffing asked 27/1, 2015 at 10:23

1

Solved

I just did this myself (as a RockMongo export and import was corrupted) so just posting here. Note this was for MongoDB verison 2.4.9 with corresponding versions of mongodump and mongorestore.
Hora asked 26/11, 2014 at 22:50

2

Solved

On my first server I get: root@prod ~ # du -hs /var/lib/mongodb/ 909G /var/lib/mongodb/ After migration this database with mongodump/mongorestore On my second server I get: root@prod ~ # du -hs...
Capacitate asked 29/7, 2014 at 16:55

1

Solved

I have a replica set with 3 members. Each one is running mongod 2.4.8 on Linux. I am using MMS agent to monitor the health of my replicaset/hosts and all appears ok. I am using mongodump to backup...
Joelie asked 15/5, 2014 at 15:39

© 2022 - 2024 — McMap. All rights reserved.