Losing some work due to a computer glitch is a frustrating moment. Losing your entire book is a crushing event. Okay it wasn't an entire book I just lost, but it was enough to ruin my day.
I work with writers all over the world to help them get their books written and then published. And what is the one thing that published writers do that many unpublished writers don't? They schedule writing time. And I mean literally put it in the diary.
Most writers will tell you that writing time doesn't always just happen. The Muse doesn't always strike. Sometimes writing is a hard slog. Sure, sometimes it flows. Sometimes it is like mud. But you have to do the slog.