top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

MongoDb Backup Issue

0 votes
244 views

We are saving File To mongodb using GridFs

Now I want to get back from server, mongodb is authentic for user

When I open mongo shell and type mongodump then it show auth error So please tell me how to pass username and password and get backup from server .

I tried
https://docs.mongodb.com/manual/tutorial/backup-and-restore-tools/

but no luck?

posted Jun 8, 2018 by anonymous

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

Similar Questions
0 votes

Can Google cloud disk snapshots give consistent MongoDB backups? I am using WiredTiger engine with journalling enabled, both data and journal files are on the same disk.

0 votes

I have one server contains the backup deamon and blockstore. I need to know if I can store the snapshots on tapes as off site backup. If not anyone can suggest a solution for off site backup for this situation.

0 votes

We recently starting using MongoDB and the new Scala driver library (v 1.1.1). We have not made any custom configurations but we are consistently running out of connections and getting connection timeouts. I worry that we are using the driver incorrectly.

Please see my questions below -

  1. We are using dependency injection to manage the MongoClient. Should be injecting MongoClient or MongoDatabase into all of our CRUD classes?
  2. Should we treat the MongoClient and/or the MongoDatabase as a singleton?
  3. Are there any other common mistakes people have seen with the Scala driver?

Thanks in advance...

+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.

...