Questions tagged [mongodump]

Mongodump is a utility for creating a binary export of the contents of a database.

Consider using this utility as part of an effective backup strategy. Use mongodump in conjunction with mongorestore to restore databases.

362 questions
15
votes
3 answers

mongodump error "Failed: error reading from db: EOF" (no entries in server log)

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 user (recommended) you may # need to create and set…
Sybil
  • 2,503
  • 3
  • 25
  • 36
14
votes
3 answers

Which one is the preferred choice Mongodump VS Mongoexport for upgrading mongoDB database?

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 MongoDB 2.4 and mongorestore in Mongodb 3.4.5 worked…
forum.test17
  • 2,119
  • 6
  • 30
  • 62
14
votes
2 answers

automated mongodump: how to hide password from ps output?

okay so we we have the mongodump tool, it has --password option. Everything works great except this plain password is visible in ps output to everybody. our database has plain user/password authentication. The only thing that I found to work is…
Sergey Grechin
  • 876
  • 11
  • 14
14
votes
4 answers

mongodb how to mongodump only indexes to another mongodb instance

I have a mongodb instance with a lot of data, now I need to start up a new instance with the same structure without data. how to get it done?
enzoyang
  • 847
  • 4
  • 13
  • 25
14
votes
2 answers

How to verify the integrity of the files that result from a mongodump operation?

From the research I have done, mongodump doesn't have a built-in check to verify the integrity of a mongodump operation; at least, nothing apparent to the user. I may be wrong. If I am, please inform me. Otherwise, I'm sure I'm not the only one who…
tlovely
  • 645
  • 1
  • 5
  • 15
11
votes
6 answers

mongodump from remote node - unable to authenticate using mechanism "SCRAM-SHA-256"

Tried taking dump from a remote node and got the following error: Failed: can't create session: could not connect to server: connection(): auth error: sasl conversation error: unable to authenticate using mechanism "SCRAM-SHA-256":…
Surya
  • 971
  • 2
  • 17
  • 30
11
votes
0 answers

mongorestore hangs while restoring fs.chunks

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. This is what I put in the command line. mongorestore…
TimWhiting
  • 2,405
  • 5
  • 21
  • 41
11
votes
2 answers

mongodump and mongorestore with SSL

Getting mongodump and mongorestore work with security quite troublesome. I have mongod v3.4.1 with requireSSL running at 192.168.99.100. It is IP address of VirtualBox docker machine running on my Windows. It is just for testing of-cause. The…
CallMeLaNN
  • 8,328
  • 7
  • 59
  • 74
10
votes
3 answers

How to resolve mongodump error "not recognized"?

Hi feel like this question has an easy answer but I just can't see it. I am using the command Mongodump --db and i get 'mongodump' is not recognized as an internal or external command, operable program or batch file . how can i get a…
FlyingFox
  • 101
  • 1
  • 1
  • 5
10
votes
3 answers

Mongorestore: createIndex error: Values in v:2 index key pattern cannot be of type object. Only numbers > 0, numbers < 0, and strings are allowed

I receive the following error when running mongorestore command with a large MongoDB database. the machine where the backup was done: db version v4.2.0 git version: a4b751dcf51dd249c5865812b390cfd1c0129c30 OpenSSL version: OpenSSL 1.1.1 11 Sep…
Simoyw
  • 681
  • 1
  • 9
  • 30
10
votes
3 answers

Restoring the database dump of an older version of mongo to a new version of mongo

Currently, I have an older version of mongo, i.e 2.6 running on my system. I already have my site in production and have a lot of client data. I am planning an upgrade to mongo 3.2. So, my question is whether mongorestore of mongo v3.2 work with…
sp497
  • 2,363
  • 7
  • 25
  • 43
10
votes
1 answer

How to Speed Up Mongodump, Dump Not Finishing

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 froze after it seems to have ended at 0%, around 22…
Wes
  • 101
  • 1
  • 1
  • 4
9
votes
1 answer

How to mongo restore from atlas backup files?

I tried to restore mongo backup files from atlas. It's containing some wt files. How to restore. Backup downloaded from Daily Snapshots from atlas. Thanks in advance.
9
votes
1 answer

mongorestore metadata.json file

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 …
BanksySan
  • 27,362
  • 33
  • 117
  • 216
9
votes
6 answers

mongodb - mongodump is not defined

I am a newbie to mongodb. I am trying to take a backup of my database using mongodump. But whenever I use this command I get the below error Referenceerror: mongodump is not defined I tried creating a new user with all the roles but still I get…
prdtuty
  • 532
  • 3
  • 9
  • 21
1
2
3
24 25