How to Recover Lost Data using Oplog in Mongo Database

  Рет қаралды 6,005

VeMaRa Hub

VeMaRa Hub

Күн бұрын

A part of set of Mongo database Videos.This video will give you a hands on session regarding how to restore lost data in mongo database using oplog collection.
Here's what you will learn :
I will be demonstrating an example of accidental collection drop.Then i would explain how to restore that lost collection back to database using oplog replay after taking mongodump of the oplog collection and restoring it back using mongorestore.
This video is part of a playlist of videos on Mongo, you can subscribe to my channel and explore more videos on programming, database administration and much more.
You can follow me on twitter @HubVemara.
Check out my blog : csrepo.blogspot.com/

Пікірлер: 16
@rajas8375
@rajas8375 4 жыл бұрын
Great
@KrishnaK-ul4vh
@KrishnaK-ul4vh 5 ай бұрын
Hi How to do MongoDB Snapshot Backup and Restore.. and How to Monitor MongoDB
@elangovan8522
@elangovan8522 4 ай бұрын
Hi, How to do the same operation in windows os. it will be helpful.
@elangovan8522
@elangovan8522 4 ай бұрын
I tried to do it on windows os it keep on checking replay like mb's
@harishgopinath5147
@harishgopinath5147 3 жыл бұрын
Hello Vemara, it is a good video. well will this work in realistic situation? Let us take an example my oplog size is 10 GB and the collection which I have dropped in 50 GB, now in this case my oplog will not be able to accommodate the 50 GB of data. so I can not restore the entire data right? so this wont work when we delete the huge data which is more than a oplog size?
@vemarahub
@vemarahub 3 жыл бұрын
Hi Thanks for Watching. The purpose of video is to explain point in time recovery and how oplog can be used to restore database to a desired point. For practical cases there would be a lot of variables to consider including oplog size.Will be doing more videos on real time production issues and troubleshooting.Will be including these then. Thank you for your feedback.
@gauravpuri8716
@gauravpuri8716 Жыл бұрын
Thanks for the video.. oplog is a capped collection so there is a possibility that some data might be overwritten and not recoverable. If having daily or hourly backups the solution for that?
@vemarahub
@vemarahub Жыл бұрын
thank you for watching. yes , since its a capped collection, recommendation is to backup oplog just like you backup data. mongodump --oplog
@msulemantube
@msulemantube 2 жыл бұрын
By mistake I drop my collection, But I could not found the drop collection in the oplog. Is there any other way to recover the drop collection?
@vamsikrishna2241
@vamsikrishna2241 3 жыл бұрын
My mongodb was hacked and all the db deleted moreover i dont have backup ...Is it possible to get bac my db ? If possible tell me how ?
@sowmiyadevi6272
@sowmiyadevi6272 3 жыл бұрын
Hi sir..how can i learn mongodb..is it good to join a institute..im already working as a mongo admin as a beginner
@vemarahub
@vemarahub 3 жыл бұрын
Refer mongo university website videos and practise on mongo db atlas or local installation.Refer my videos for short snippets of different mongo db aspects.
@yusufk9770
@yusufk9770 3 жыл бұрын
Hi Sir, by mistake I've dropped my database from mongodb. How to retrieve it? is it possible?
@vemarahub
@vemarahub 3 жыл бұрын
Hi..thanks for watching..It depends on your oplog size and when did you drop it
@yusufk9770
@yusufk9770 3 жыл бұрын
@@vemarahub by eve 5.30 sir. I'm a beginner to MongoDB.
@vemarahub
@vemarahub 3 жыл бұрын
Check your oplog limit using rs.printReplicationInfo() and if it still has oplog time than the time starting you dropped your db, use the method in my video to restore your database.
Mongo DB Sharding Basics in 5 Minutes
5:39
VeMaRa Hub
Рет қаралды 65 М.
How to Setup Mongo DB Sharding
12:24
VeMaRa Hub
Рет қаралды 22 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 58 МЛН
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 28 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 21 МЛН
Mongo DB Replication Oplog File in 5 minutes
5:01
VeMaRa Hub
Рет қаралды 6 М.
Vector Search: Powering the Next Generation of Applications
38:15
How to backup mongodb every night - it's really easy.
17:32
Mafia Codes
Рет қаралды 26 М.
MongoDB Internal Architecture
43:25
Hussein Nasser
Рет қаралды 84 М.
Ian Hansen - Abusing The MongoDB Oplog
28:20
DigitalOcean
Рет қаралды 3,5 М.
MongoDB Schema Design Best Practices
50:39
Joe Karlsson
Рет қаралды 169 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 58 МЛН