No backup of MongoDB 18 million data sheet on mistakenly deleted line

Source: Internet
Author: User
Tags mongodb

2018-06-14 15:32, I mistakenly deleted the table of the MongoDB cluster on the line.

Ok,mongobooster is a stop button. Click Stop to Help. But, can not stop at all, every refresh will see the form in 1M decreasing speed, every refresh once dizziness will aggravate the mind of the rapid thinking solution

Course:

1. Find ops and take backup. Looking for a long time unexpectedly did not have a recent backup, the most recent is the beginning of May, my God, I quickly fell to the ground.

2. The collection of MongoDB is file storage, then the original file is found on the operation disk, and the 400 multi-G disk takes half an hour to retrieve. This half an hour, watching the anomaly is increasing, crashing, every second is uncomfortable

3. I want to solve this time, dare not speak with the upper class. But in the end, I had the courage to face it, to find a solution, fortunately, the table's data can be pieced together from other tables, then write the tool to retrieve other tables take the data table

4. Do together at both ends, where files are not recovered, various Google solutions, but there is no plan to restore the MongoDB table data, uncomfortable, and quickly write tools.

5. Write a good tool, simple estimation of time, due to the large amount of table data retrieved. It takes 9 hours, in case of a little moth, my god, I can't.

6. Calm down, optimize the code together, and finally complete the new tool, the estimated time is about 1 hours and half an hour or so to spit half a tone.

7. Staring at the program, fortunately stable execution generates a new table. Resolve some of the errors on the MQ line ended around 2018-06-14 19:00.

These hours of stress, wow, can't say uncomfortable, despair is the best description.

Amen, Buddha bless. Don't do it again. Dragon Boat Festival go to the temple.

No backup of MongoDB 18 million data sheet on mistakenly deleted line

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.