Nghe chuyện, khám phá thế giới
Một người kể chuyện mất toàn bộ dữ liệu; nghe xong bạn nói được về sao lưu, ổ cứng, lưu đám mây và giải thích cách phòng mất dữ liệu.
Everybody who works with computers has a story about losing something. This is mine, and I tell it fairly often, because the version of me who lost that work would not have listened to anybody either. I was writing a book. Not a famous one. A textbook on statistics which had been commissioned by a small publisher and which had taken me two years of evenings and weekends. There were fourteen chapters, roughly two hundred diagrams that I had drawn myself, and a folder of interviews which had been recorded with teachers in six different schools. All of it lived in a folder on my laptop called Book. All of it. That is the whole of the mistake, contained in one sentence. I knew about backups in the way that everybody knows about exercise. An external hard drive had been bought. It was in a drawer, still in its plastic, because plugging it in was a task that could always be done tomorrow. I had also been offered cloud storage by my university, twenty gigabytes of it, free, which had been mentioned to me at least three times and which I had never switched on. The laptop was not stolen and it was not dropped. It simply stopped. One Sunday morning it was turned on and instead of starting up it made a noise which I can only describe as a small cough, repeated every two seconds. The screen stayed black. The noise was the hard drive, and the noise meant that a part inside it which is meant to float above the surface was touching the surface instead. Every time it coughed, a little more of the recording was scraped away. I took it to a shop. The man behind the counter listened to it for about four seconds, then he turned it off, which I did not understand at the time. He explained that every extra minute it ran was making the damage worse, and that the machine should not be switched on again by anybody, including me, especially not to see whether it might work this time. Then he told me about data recovery. It exists. It is done in a clean room by people who open the drive and read the surface directly. It costs, in my case, an amount which was roughly a third of what the book was going to earn me. And there is no guarantee. The word he used was likely. Most of it would likely be recovered. I paid. Eleven of the fourteen chapters came back, along with the interviews. The diagrams did not, because of where they happened to be sitting on the disk. I redrew two hundred diagrams over the following four months and I can tell you that a diagram is never as good the second time. You cannot remember why you made the choices you made. So here is what I do now, and it takes almost no effort, which is the part that annoys me most about the whole episode. Everything I work on lives in a folder which is synchronised to cloud storage. Not copied by me. Synchronised, automatically, within seconds of a change. If a backup depends on somebody remembering to do it, it will not be done, and I have proved that about myself. Second, the external drive came out of the drawer. Once a week it is plugged in and a full copy is made. This matters because cloud storage protects you against a broken laptop but not against yourself. If a folder is deleted by accident, or if a program corrupts a file, the mistake is copied upwards very obediently. A weekly copy that is not connected to anything is a copy of last week, and last week is sometimes exactly what you need. Third, and this is the one people skip, I test it. Twice a year I choose a file at random and try to restore it. The first time I did this I discovered that my backup had been failing silently for five weeks, because the drive had been renamed and the program was writing to a folder which no longer existed. It had been reporting success the whole time. A backup which has never been restored is not a backup. It is a hope. People sometimes ask whether cloud storage is safe, meaning whether somebody could read their files. It is a reasonable question and the answer depends on the service. But I would gently point out that the thing which actually destroyed my work was not a criminal. It was a piece of metal which had been spinning for four years and which simply stopped being able to do it. That is what happens to nearly everybody who loses something. The book was published eventually, fourteen months later than it should have been. My publisher was patient. My evenings were not returned to me. If you take one thing from this, let it be the smallest one. Whatever you are working on right now, back up the folder it lives in, and do it this week rather than tomorrow. It is fifteen minutes of your life, and the version of you who has to redraw two hundred diagrams will never be able to thank you for it.