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
Nguồn: jmp-photography.net
Xem thêm bài viết khác: https://jmp-photography.net/cong-nghe/
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
Great. How to backup and restore very large databases ?
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
Thank you, nicely done.
Perfect timing! Just had to do this today. Loving your videos keep it up!