Back it Up or Lose It

What’s your backup strategy?

This morning, on Twitter, I read a tweet from one of the folks I follow, @SeeTTL :

RT @JCDean: PSA: Please back up your computer! My wife just went to console a friend who may have lost EVERY pic of her kids.

This sad story really hit home with me. No, not because I have kids. And not because I’ve lost the contents of a hard drive forever — despite the fact that I’ve suffered three total hard disk crashes since 1989. But because I could imagine how badly I’d feel if I’d trusted my hard disk to hold the only copies of all my photos.

As a computer user, the data you create is the only thing that can’t be replaced when lost. I’m talking about photos, diaries, accounting records, address books, original manuscripts, and more. Sure, a lot of this stuff can be recreated with some effort, but some of it can’t. Like all those photos.

The only way to protect this data from loss is to create reliable backups and, whenever possible, store them offsite, away from the computer.

Mac users have a few options for automated backups:

  • Time Machine is truly transparent. It goes to work in the background to faithfully duplicate what it finds on your hard disk. You can use it with its default settings or customize settings to limit what’s backed up. All you need is an attached hard disk or Time Machine-compatible network disk. Time Machine does the rest. Best of all, it will even keep copies of stuff you deleted by accident — at least for a while — so you can get it back. With external hard disk prices so low right now and Time Machine free with Leopard, why not take advantage of it?
  • Backup is backup software that comes with Mac OS X. It’s highly configurable and can be used to back up to a hard disk, optical media such as CDs or DVDs, and a MobileMe account. This last option is probably the best because it automates off-site storage. I wrote about using Backup in “Save Yourself (and Your Data) with .Mac Backup,” which I wrote for Peachpit.com in 2006. It might be dated, but I’m sure you’ll find some good tidbits of information there.
  • iDisk SynciDisk is part of a MobileMe account. You might not think of it as a backup solution, but it can be. First, you can simply drag and drop the things you want to back up to your iDisk to copy it to your MobileMe storage space. That’s an offline storage solution for you. But what you might find easier is to enable iDisk syncing so a copy of your iDisk space is available on your computer’s desktop. Then simply store data in it. The data is automatically copied to your iDisk space on MobileMe when synced. Not only that, but if you more than one Mac, all of them can share the same iDisk. That means the documents you copy there are available with you on all of your computers.
  • Third party backup solutions are also available to you. There are quite a few out there and I’ll be the first to admit that I’m not up to speed on them. I haven’t needed them. I have a very good backup strategy without them.
  • Fetch and iCal can also be used together to create an automated offsite backup solution. I wrote about that in ““Creating an Automated Backup Plan with Fetch and iCal”,” in 2007.

CDs and DVDs can always be used to back up data to. This is what some people seem to forget. And it’s what probably could have saved the woman referenced above a lot of grief.

Last week, I wrote a blog post for my personal blog that outlined my workflow for geotagging images. In it, I included Step 4: Backup. That’s the step where I copy all of my images from my hard disk to a CD or DVD before erasing the camera’s data card. I have dozens of these discs, nicely labeled, in my office. I’d be smarter to have them offsite. But at least I have them. Anyone who makes a lot of digital images and does not perform this step is looking for trouble. Don’t say a hard disk crash won’t happen to you. It will. It’s just a matter of time.

Heck, it happened to me three times already.

First Real Use of Time Machine a Success!

I finally got to try it in a real-life situation.

I use ecto to compose and post entries on my various WordPress blog-based sites, including this one. One of the things I like about ecto is that is stores all of my posts on my computer, so I don’t need to be online to read something I wrote. This is especially useful when I’m using a laptop out on the road. I can write a blog entry offline and even include links to other existing entries on any of my sites and then post it when I have an Internet connection.

I recently upgraded from ecto 2 to ecto 3, which is still in beta (but looking good). Because of some problems with the updater trying to update the old version of ecto, I decided to delete it and its database of entries and stick to ecto 3. I did that one day last week — I think it was Wednesday.

This morning, I woke remembering that the old version of ecto had, in its post database, a post I’d written but never published. It was a lengthy post with images that I really wanted to save for future publication or other use. But with ecto and its database deleted, the post was gone.

Or was it?

I’d bought a 500GB external hard disk and had set it up for use with Time Machine when I installed Leopard on my iMac last fall. Time Machine is designed precisely for situations like this — when you realize that you’ve deleted something you shouldn’t have.

Time Machine in ActionIn my situation, I needed to recover the ecto 2 application file and the folder containing the blog post database. I started with the application. I opened the Applications folder on my computer and clicked the Time Machine icon in the Dock. The cool (but rather silly) interface kicked in. I used the timeline on the right side of the screen to scroll back a few days. The ecto file did not appear. I scrolled back a few more days to the middle of last week. When the screen refreshed, the file was there. I selected it and clicked the Restore button. Time Machine closed and the file was copied to my current Applications folder.

I repeated this process for the ecto folder in the Application Support folder.

Then I double-clicked the ecto application, re-entered my registration information, and recovered the “lost” blog post.

Based on this experience, I’m thrilled with Time Machine.

Got any stories about how Time Machine saved your files? Use the Comments link or form for this post. I’m sure others would like to read about them.

Additional Information

Product ImageYou can learn more about Time Machine on pages 126-130 of Mac OS X 10.5 Leopard: Visual QuickStart Guide.

Create an Automated Backup Plan with Fetch and iCal

Another one of my Informit.com articles goes online.

Create an Automated Backup Plan with Fetch and iCal” explains how you can use low-cost FTP software and iCal’s scheduling feature to create offsite backups of your important files. All you need is space on an FTP-accessible server.

The article is free at Informit.com.

I wrote this article before my February hard disk crash. If only I had taken its advice for more than just a handful of files!

Backing Up a WordPress Blog Database

Back it up — just in case.

It happens more often than you think. Your server’s hard disk dies and takes all of its content to byte heaven.

Of course, it never happens when your files are backed up. So by backing up your files, not only do you have a copy of your hard work in case it does happen, but it’s less likely to happen in the first place.

Two good reasons to back up your WordPress database.

These instructions apply to WordPress.com server installations.

Step One: Make sure the Backup plugin is activated.

You only need to do this once.

  1. Log into your blog and display the dashboard.
  2. Click the Plugins button in the navigation bar.
  3. Confirm that the WordPress Database Backup plugin is activated. If it isn’t click the Activate button in its row.
    The Backup Plugin

Note that if the WordPress Database Backup plugin does not appear in the list, you must install it. You can get it from Skippy.net. We explain how to install plugins on pages 152-153 of our WordPress book.

Step Two: Back It Up

You do this each time you want to back up the database.

  1. Log into your blog and display the dashboard.
  2. Click the Manage button in the navigation bar.
  3. Click the Backup button in the second row of the navigation bar.
  4. Backup OptionsIn the Backup administration panel, turn on all of the check boxes on the right side of the window. Keep in mind that you may have more or fewer check boxes than what is shown here. Select the Download to your computer option at the bottom of the window and click Backup! (If you get an error message here that your backup folder is not writable, you must change the permissions for the wp-content folder on your server so it’s writable. We explain how on pages 120-122 of our WordPress book.)
  5. Wait while the backup is created. It might take a while if you have a large blog. Don’t close the browser window while the backup is being created!
  6. Save FileWhen prompted, save the backup file to your hard disk.

You can automate this process by installing the WP-Cron plugin by Scott Merrill. This plugin, which I use on all of my WordPress blogs, can automatically back up your database nightly and e-mail you a copy of the file.

And since I’ve begun using it, I haven’t had a single need for those backup files!