This wasn’t going to be the subject for my post today, but a series of events have changed my mind. Here they are:
Yesterday on my blog, WPShout I published ‘10 Awesome Things to Do With WordPress’ Custom Fields‘. This morning I awoke to find not a single comment on the post. I was disappointed as the post had taken ages, but I didn’t think much more of it. Until this evening. I wanted to email a friend a link to the post, so I loaded up WPShout, only to find the post wasn’t there! In the admin was only my draft from a couple of days ago. Odd, I thought. I copied and pasted the post from Google Reader and republished the post. And then I realized that a heck of a lot of comments I’d spent yesterday evening replying to had gone, and so had my replies. In other words, my database had reverted to a version a couple of days old. Why? I don’t know (if anyone does have any idea, could you drop me an email?!) at this point.
Of course, at this point you’re (probably not) screaming at your monitor
“just restore the backup you’ve got!… you, you do have a backup, right?!”
Yes. Of course I did. Or so I thought. I’d set up the WordPress Database Backup plugin to email me a backup of the database every 24 hours, and that email automatically got archived. Which meant I didn’t see it hadn’t been sent for a couple of weeks because when moving domains I’d forgotten to reinstall the plugin. Which meant I didn’t have a backup.
Where this post is going is simple – don’t be an idiot like me and only realize your backup doesn’t exist when you actually need it, spend five minutes now installing the plugin I mention above and set it up to email you every day. Just don’t archive the email automatically. WordPress Hacks Top Tip: don’t be an idiot….always have a backup.