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
0
votes
1 answer

Performances issues while restoring mongodump. What can I do better?

My company is in the process of migrating data from one kubernetes cluster to another one. Part of the migration is to move data from mongoDB. The mongoDB installations came with some backup scripts, which I used as an entrypoint for my custom…
Moritz Schmitz v. Hülst
  • 3,229
  • 4
  • 36
  • 63
0
votes
1 answer

MongoDB setShardVersion failed, mongodump only

I am use sharding (over replica set) and try to dump the database. Sharding enabled for mycms-prod.fs.chunks by key files_id. Additional info: http://groups.google.com/group/mongodb-user/browse_thread/thread/a8f05cbf495d6487 I have readed this…
moskrc
  • 1,220
  • 1
  • 12
  • 23
0
votes
0 answers

When I dump my database , 75% was already Okay.But It returns failed :document is corrupted

When I dump my database, 75% was already Okay. But It returns failed: the document is corrupted. What should I do
朱子坤
  • 1
  • 1
0
votes
0 answers

mongodump references wrong db directory

I had an install of MongoDB that was using on OSX that was using ~/data/db. I had a crash and re-installed MongoDB using Homebrew and it set up the new db path at ~/usr/local/var/mongodb. All of my apps are working (default port 27017), but when…
Brian Flanagan
  • 4,612
  • 5
  • 29
  • 38
0
votes
0 answers

mongoexport / mongodump halts when dump reaches 101 records

I'm trying to dump a MongoDB collection from a remote server to a local JSON file. First, I do some ssh port forwading to begin with: ssh -NL 12345:localhost:27017 $REMOTE_USERNAME@$REMOTE_HOST & Then, the export itself: mongoexport -h $MONGODB_URL…
Victor Valente
  • 761
  • 9
  • 24
0
votes
1 answer

MongoDB dump and restore

I installed the mongo using the docker, Now I need to take the mongodb dump and restore. 1) where can I download these two tools? 2) I don't need to install the complete mongo since the mongo is already installed using docker, I just need to…
Harry
  • 3,072
  • 6
  • 43
  • 100
0
votes
1 answer

Mongodump pipeline into docker swarm

I've issue with dumping data from mongo container into swarm. I can't use run into swarm, I can't connect other container (run'mongodump because main network not manually attachable). I googled this issue and I've found only solutions with…
kotmsk
  • 455
  • 1
  • 4
  • 12
0
votes
1 answer

Mongodump database Backup Error How it can be solved?

I received this error when I run command of mongodump mongodump --db admin --out /DatabaseBackups/ error getting collections for database admin: error running listCollections. Database: admin Err: not authorized on admin to execute command {…
0
votes
1 answer

Migrating database during MongoDB upgrade

I am planning to upgrade existing MongoDB installations from 3.6 (or 4.0 depending on the needs) and I find that it is necessary that you do incremental updates during the process, that is you need to upgrade to 3.4 to 3.6 then to 4.0. The process…
MervS
  • 5,724
  • 3
  • 23
  • 37
0
votes
1 answer

Mongodump Error : positional arguments not allowed: [abc]

The below comment throwing this error for mongodump mongodump --host xx.xxx.xx.xxx -db abc --out home/dataBaseBackup/
Ramu Reddy
  • 41
  • 1
  • 7
0
votes
2 answers

mongodump against access control

I was trying mongodump to backup some dbs in mongodb and I have auth enabled in my mongodb. I have one super user with role: "root" and db: "admin" and one with dbOwner for a specific db abc. I tried this following command mongodump --username admin…
ts178
  • 321
  • 1
  • 6
  • 20
0
votes
1 answer

Restore database in mongodb replication

My requirement is to restore mongodb databases from dev box to test server having three nodes. I have setup the replication between three nodes for high availability. I have created backup on dev using mongodump to a different directory. Now my…
Vinod Narwal
  • 169
  • 2
0
votes
0 answers

Restore a new mongoDB server without dumping old one

I am upgrading my Mongo Database beacause the current version is not even suposed to be in production mode. You will understand right away: The project I am working on use mongoDB server 2.7.3. This is a very early development/unstable release. So…
Gabson
  • 421
  • 1
  • 4
  • 20
0
votes
2 answers

Specifying dump directory in mongod.cfg file

All, Is there a system wide setting to specify the dump folder in MongoDB? I went through this link and couldn't find any. Basically, I want C:\MongoDB\dump to be the folder where all backups are created. Currently, a dump folder is created in the…
Gopinath Rajee
  • 400
  • 5
  • 20
0
votes
0 answers

How to automate mongodb backup from openshift pod?

Some time ago a create a projet with Openshift V3 using "Node.js + MongoDB" starter kit. It work fine and now I want to automate the mongo db backup. I find a lot of Node.js module that I can use to do it very easily but they need "mongodump". In…