Time Machine

There are two kinds of people in the world: those who have a regular backup system—and those who will.

You’ll get that grisly joke immediately if you’ve ever known the pain that comes with deleting the wrong folder by accident, or making changes that you regret, or worst of all, having your hard drive die. All those photos, all that music you’ve bought online, all your email—gone.

Yet the odds are overwhelming that at this moment, you do not have a complete, current, automated backup of your Mac. Despite about a thousand warnings, articles, and cautionary tales a year, guess how many do? About four percent. Everybody else is flying without a net.

If you don’t have much to back up—you don’t have much in the way of photos, music, or movies—you can get by with using a free online backup system like iCloud Drive, Dropbox, or CrashPlan. But those methods leave most of your Mac unprotected: all your programs and settings.

What you really want, of course, is a backup that’s rock-solid, complete, and automatic. You don’t want to have to remember to do a backup, to insert a disc, and so on. You just want to know you’re safe.

That’s the idea behind Time Machine, a marquee feature of OS X. It’s a silent, set-it-and-forget-it piece of peace of mind. You sleep easy, knowing there’s a safety copy of your entire system: your system files, programs, settings, music, pictures, videos, document files—everything. If your luck runs out, you’ll be so happy you set up Time Machine.

Here’s the bad news: Time Machine requires a second hard drive. That’s the only way to create a completely safe, automatic backup of your entire main hard drive.

That second hard drive can take any of these forms:

In all cases, the backup disk must be bigger than the drive you’re backing up (preferably much bigger).

Here’s what you can’t use as the backup disk: a CD or your startup drive.

Sure, it sounds like an Apple plot to sell more hard drives. But you’d be surprised at how cheap hard drives are. At this writing, you can buy an external USB 2-terabyte hard drive (2,000 gigabytes) for $80, for goodness’ sake—and hard drive prices-per-gigabyte go only down.

The first time the Mac sees your second hard drive, it invites you to use it as Time Machine’s backup drive (“Do you want to use ‘Seagate 2TB Drive’ to back up with Time Machine?”). That could be the moment you connect an external drive, or the first time you turn on the Mac after installing an internal drive.

If you click Use as Backup Disk, you’re taken immediately to the Time Machine pane of System Preferences (Figure 6-16). Here’s where you see that Time Machine is turned on and has a drive it can use for backup.

Soon enough, the Mac starts copying everything on your hard drive, including OS X itself, all your programs, and everyone’s Home folders. You know that because you see the symbol in the Sidebar (next to the backup disk’s name), and the menu-bar Time Machine icon looks like .

And that, ladies and gentlemen, is the easiest setup for a backup program in history.

Note

Unless you turn on encryption (see the box on Encrypted Time Machine Backups), Time Machine doesn’t use any compression or encoding; it’s copying your files exactly as they sit on your hard drive, for maximum safety and recoverability. On the other hand, it does save some space on the backup drive, because it doesn’t bother copying cache files, temporary files, and other files you’ll never need to restore.

Now go away and let the Mac do its thing. The first backup can take hours as the Mac duplicates your entire internal hard drive onto the second drive. The Mac may feel drugged during this time.

From now on, Time Machine quietly and automatically checks your Mac once an hour. If any file, folder, or setting has changed, it gets backed up at the end of the hour. These follow-up backups are quick; Time Machine backs up only what’s changed.

So, should disaster strike, the only files you can lose are those you’ve changed within the past 59 minutes.

By the end of the day, you’ll have 24 hourly backups on that second disk, all taking up space. So at day’s end, Time Machine replaces that huge stash with a single daily backup. You can no longer rewind your system to 3:00 p.m. last Monday, but you can rewind to the way it was at the end of that day.

Similarly, after a month, Time Machine replaces those 30 dailies (for example) with four weekly backups. Now you may not be able to rewind to October 14, but you can rewind to November 1. (Apple assumes it won’t take you a whole week to notice that your hard drive has crashed.)

The point is that Time Machine doesn’t just keep one copy of your stuff. It keeps multiple backups. It remembers how things were in every folder—not just yesterday, but last week, last month, and so on. It keeps on making new snapshots of your hard drive until the backup drive is full.

At that point, the oldest ones get deleted to make room for new ones.

By the way, if a backup is interrupted—if you shut down the Mac, put it to sleep, or take your laptop on the road—no big deal. Time Machine resumes automatically the next time you’re home and connected.

If you’re among the 75 percent of Mac fans with a laptop, Time Machine used to be something of a bust in one regard: Whenever you were away from your backup disk (at home or the office, for example), you lost the benefits of Time Machine.

Today, crazy as this may sound, Time Machine keeps on working even on a laptop that’s far from home. Thanks to a feature called local snapshots, Time Machine works as usual by making its backups right on the laptop’s own hard drive.

Of course, this system won’t help you if your hard drive dies; your backup is on the same drive, so you’ll lose the originals and the backups simultaneously. But what local snapshots do provide is a safety net—a way to recover a file that you deleted or changed during this time away. Better yet, once you’re home again, when your laptop rejoins the network, the local snapshots are intelligently merged with the master Time Machine backups, as though you’d never been away.

If Time Machine is turned on on your laptop, it makes local snapshots automatically—once an hour, as usual. As time goes on, Time Machine condenses those backups to daily or weekly snapshots to save disk space.

If you need to recover a file, enter Time Machine as usual. Your local snapshots show up on the same timeline as backups made on your regular, external backup disk, but they’re color-coded: pink tick marks for external backups, gray for local ones. If the pink bars are dimmed, it’s because you’re not hooked up to your external Time Machine backup drive.

Time Machine has four faces. There’s the application itself, which sits in your Applications folder; open it only when you want to enter Restore mode. There’s its Dock icon, which also enters Restore mode, but which has a shortcut menu containing useful commands like Back Up Now (and Stop Backing Up).

There’s the Time Machine menulet, which may be the handiest of all. It identifies the time and date of the most recent backup, offers Back Up Now/Stop Backing Up commands, and has direct access to Time Machine’s restore mode and preferences pane.

Finally, then there’s its System Preferences pane, where you adjust its settings (Figure 6-16). To see it, choose →System Preferences→Time Machine. Or choose Time Machine Preferences from Time Machine’s Dock icon or menulet.

All right, you’ve got Time Machine on the job. You sleep easy at night, confident that your life is in order—and your stuff is backed up.

Then, one day, it happens: Your hard drive crashes. Or you can’t find a file or folder you know you had. Or you save a document in some non–Auto Save program and then wish you could go back to an earlier draft. Some kind of disaster—sunspots, clueless spouse, overtired self—has befallen your files. This is Time Machine’s big moment.

Start by pinpointing what you’re looking for, in one of these two ways:

Now click the Time Machine icon on the Dock, or choose Enter Time Machine from the menulet (Figure 6-17, top). Don’t look away; you’ll miss the show.

Your desktop slides down the screen like a curtain that’s been dropped from above. Front and center is your Finder window—or, rather, dozens of them, stretching back in time (Figure 6-17, bottom). Each is a snapshot of that window at the time of a Time Machine backup.

You have four ways to peruse your backup universe:

  • Click individual windows to see what’s in them.

  • Drag your cursor through the timeline at the right side. It’s like a master dial that flies through the windows into the past.

  • Click one of the two big, flat perspective arrows. The one pointing into the past means “Jump directly to the most recent window version that’s different from the way it is right now.”

    In other words, it’s often a waste of time to go flipping through the windows one at a time, because your missing or changed file might have been missing or changed for the last 25 backups (or whatever). What you want to know is the last time the contents of this window changed. And that’s what the big flat arrows do. They jump from one changed version of this window to another. (Or, if you began with a search, the arrow takes you to the most recent backup with a matching result.)

  • Use the search box in the corner of the window. You can search for whatever you’re missing in the current backup.

As you go, the very bottom of the screen identifies where you are in time—that is, which backup you’re examining.

In many ways, the recovery mode is just like the Finder. You can’t actually open, edit, rename, or reorganize anything here. But you can use Quick Look to inspect the documents to make sure you’ve got the right version. And you can use icon, list, column, or Cover Flow views to sort through the files you’re seeing.

If you’re trying to recover an older version of a file or folder, highlight it and then click the flat arrow button that’s pointing away from you; Time Machine skips back to the most recent version that’s different from the current one.

If you’re trying to restore a deleted file or folder that you’ve now located, highlight it and then click Restore (lower right). The OS X desktop rises again from the bottom of the screen, there’s a moment of copying, and then presto: The lost file or folder is back in the window where it belonged.

The Finder isn’t the only program that’s hooked into Time Machine’s magic. Contacts and Mail work with Time Machine, too. Other software companies can also revise their own applications to work with it.

In other words, if you want to recover certain addresses or email messages that have been deleted, you don’t start in the Finder; you start in Contacts or Mail.

Then click the Time Machine icon on the Dock. Once again, you enter the recovery mode—but this time, you’re facing a strange, disembodied, stripped-down copy of Contacts or Mail.

You’re ready to find your missing data. Click the Jump Back arrow to open the most recent version of your address book file or email stash that’s different from what you’ve got now. (You can also use the timeline on the right if you remember the date when things went wrong.)

At this point, you can select individual Contacts entries or email messages to restore; just click the Restore button.

Often, though, you’d rather reinstate the entire Contacts file or email collection from the backup. That’s what the Restore All button is for.

If you click it, the experience is slightly different. Contacts may discover a lot of duplicate name-and-address entries and invite you to step through them, deciding which ones “win” (the old or the new).

Every hard drive will die at some point. You just hope it won’t happen while you own the computer. But if it does, you, as a Time Machine aficionado, won’t care. You’ll just repair or replace the hard drive, and then proceed as follows.

Beware, however: Restoring your earlier version also erases any files you’ve created or changed since you installed the update. Back them up manually before you proceed!

Then follow the steps; when you’re asked to choose a backup to restore, choose the most recent one. When it’s all over, copy the latest files (the ones that you manually backed up) back onto the hard drive.

Time Machine is a very different kind of backup program, and a real departure for longtime Mac addicts. A few questions, therefore, are bound to come up—like these: