[ MongoDB 5 ] Backup & Restore MongoDB database

preview_player
Показать описание
In this video, I will show you how to backup your Mongodb database using mongodump and restore it using mongorestore commands.
If you are using mongodb with authentication enabled, then make sure you attach the backup role for the user that will run the mongodump and restore role for the user that will run the mongorestore command.

Mongodump command reference

Mongorestore command reference

Hope this video was useful. If you liked it please share it with your friends and don't forget to subscribe to my channel. For any questions/issues/feedback, please leave me a comment and I will get back to you at the earliest.

Thanks for watching this video

If you wish to support me:
Рекомендации по теме
Комментарии
Автор

Perfect timing! Just had to do this today. Loving your videos keep it up!

hlboey
Автор

Thanks for the detailed video. I have a 4 node replicaset and I have dump on one of the node which I want to restore on another node.. is it possible to do so?
What command can we use for the same.TIA

aananditamadaan
Автор

when you ran mongo through docker; it can be use if you didn´t ceate mongodb using docker ?

juangabrielriveratmaayo
Автор

Hey Venkat . thanks a lot. this channel is awesome. I would like to know about point in time recovery in mongodb

chetanpatil
Автор

Hello Sir,

Could you please let me know how should i do mongodb database point in time restore using the mongodb opps manager console?

amitroy-cxqb
Автор

Thank you! Is it possible to take incremental backup of mongodb.??

prateekjaindev
Автор

What is best practices to take backup of mongodb having replica set

surajkumar-mvkq
Автор

I would like to see backup with credential. I did create a superadmin user and using mongodump and still got error and would like to see the step by step instruction and appreciated

yimingchao
Автор

It seems that for a query selector in mongodump every key has to be in double quotes now, basically a string following json syntax. So : '{"language": {"$eq": "Tamil"}}'

jornejongsma
Автор

I.. I'm having trouble mongorestore-ing a DB that I have on my PC. I receive an error: Failed: file recovInsDB does not have .bson extension. What should I do?

rauliciii
Автор

thanks for the knowledge. Please how can I migrate mongo from atlas to ec2 or using dump and restore command for the migration

juvettemunji
Автор

when i tried the mongodump command, it gives token identifier error. what may be the reason ?

prasadwt
Автор

I did this for a couple of dbs in production and the size of DBS was 1.9gb and around. I was transferring data from mongo2.6 to mongo4.2 but when I restored the size of the DB was just .5gb. Is there any method to cross-check

abhimanyukumar
Автор

how can we use mongodump by excluding particular db

aniketmeshram
Автор

Could you please help for backup and restoring of users and roles only

sivakumar
Автор

Great. How to backup and restore very large databases ?

trituc
Автор

Hi,
my database is huge and its failing with
error "Failed: can't create session: could not connect to server: server selection error: server selection timeout
current topology: Type: Single"
How To increase the timeout for mongodb?

fake
Автор

How to dump a particular date collection data ?

sanatkumarsahoo
Автор

How to take mongodb incremental backup

rahulraj-yzel