My computer crashed last night. No big deal, I thought...I didn't realize until today that I actually lost data as a result. The italics are because I'd really and truly thought that all modern applications had failsafes and backups to keep this from happening. Word processors always have that 'in progress' file, so if your computer crashes, the next time it starts up it says 'do you want to recover you files' and all is well. Even stuff written in text fields in firefox gets saved.
Not, however, the note-taking program (Tomboy Notes) I've been using to organize all my notes for my writing projects, along with any other random thing that isn't a big enough undertaking to merit a file that I have to actually decide a name and location for. New Note 453, sure. Easy.
And I checked, it actually writes all the notes to file a few seconds after you edit them, and there is also a folder called 'backup' that I assumed held backups. So it seemed pretty safe. Also, I made backups of the note files every few days -- which is the only reason I'm annoyed instead of absolutely furious.
Because when my computer crashed, all the open note files -- the ones I'd been working on, or the ones I'd wanted to think about so I set them aside somewhere, and there just happened to be a lot of those, because I've been thinking a lot lately -- all the open note files were replaced on the hard disk with files of 0 length. I.e. all my open notes were completely wiped. Not just recent changes, but the entire file. Gone.
And it turns out that the 'backup' folder was not a place where backups of my notes were stored. It was actually the trash folder, so it had all the notes I'd ever deleted instead. What the hell? We have naming conventions for a reason, it's so people don't get confused and think they have backups that they don't have.
Like I said, I did have an actual backup from a couple of days ago, so it could be a lot worse, but...I can't even imagine how this happened. Who designed this notes program, and why were they replacing all the open files with zero length files? All of them? At the same time? Why did they think that was a good idea? I can see one file getting accidentally wiped when the computer crashed. Maybe it was the one that was being saved at just that instant. But all of them?
It makes me suspect 1) that the notes program was part of the reason the computer crashed and 2) the notes program is not competently written. Which is sad, because I actually really like it.
...actually, it looks like this bug has been around for a couple of years. I guess they just don't care that much.
I wonder if this has anything to do with why the program is no longer part of the default install in Ubuntu?
...I can't decide if I should get a new notes program, or write a really good backup script that saves everything every 10 minutes like the program should have been doing. I'm leaning toward really good backup script, since who knows whether any replacement notes program would do any better? It's not like I can easily test crashing the system just to see what might happen.