Here's the scenario: You work all day on PHP and MySQL on your local development machine (i.e. your laptop computer). You retire for the night, the next morning your computer refuses to boot up because your hard disk died.
You usually backup your work to the cloud only once a week (because it's a hassle). So you can retrieve the last save point, but you're going to lose about 3 days worth of work. This should be unacceptable.
So, my question is:
What do you do to get around something like this happening to you? Do you use a versioning system (e.g. SVN)? A cron job?
I considered using Dropbox for storing my htdocs folder, and my MySQL data, however, there are a number of config changes I'd need to make that I'm not comfortable doing -- so I'm going to avoid that.
Note: I don't want to backup all of XAMPP regularly. I only want to regularly, automatically backup the htdocs and MySQL data.