Help · Backups

Restore a file from Time Machine, and test a restore.

Deleted a file, or saved over the version you needed? If Time Machine has been backing up, you can go back to an earlier copy in a minute or two. And once a month, it's worth restoring one file on purpose, so you know it works before you need it.

Pangalin Backup Watch shows in your menu bar when your last good backup finished and what you'd get back, and walks you through a restore test.

Restore a file or folder

  1. Connect your backup disk, or make sure your Mac is on the same network as it. Recent files may come back even without the disk: Time Machine keeps local snapshots on your Mac for about 24 hours.
  2. In Finder, open the folder the item was in. Skip this if it was on your desktop.
  3. Open Time Machine: press ⌘Space, type Time Machine and press Return. Or click the Time Machine icon in the menu bar and choose Browse Time Machine backups.
  4. Go back in time with the arrows, or click a date in the timeline at the edge of the screen. The backup you've picked shows in red.
  5. Select the file or folder you want back.
  6. Click Restore. The item goes back to the folder it came from.

No Time Machine icon in the menu bar? Open System Settings › Menu Bar, find Time Machine and choose Show in Menu Bar.

Restore with a Finder search

If you don't know which folder it was in, search for it first.

  1. In a Finder window, search for the file by name.
  2. With the search window open, choose Browse Time Machine backups from the Time Machine menu in the menu bar.
  3. Go back to a backup where the file appears, select it and click Restore.

An encrypted backup asks for its password

If you turned on encryption when you set up the backup disk, you need the backup password to restore from it. That's the password you chose for the backup, not necessarily your Mac login. If you can't find it, you can't open that backup, so check now that it's written down somewhere you'll find it, away from the Mac.

A backup you've never restored from is a guess. The menu can say the last backup finished an hour ago, and you still won't know a file comes back until you try one.

Test a restore, once a month

Use a file you know well, in a folder you made for the test, so nothing real is touched.

  1. Make a folder in Documents called Restore test. Copy one file you know into it, for example a photo or a short document. Keep the original where it is.
  2. Wait for the next backup to finish. The top of the Time Machine menu shows the date and time of the latest backup.
  3. Move the file in Restore test to the Trash.
  4. Open the Restore test folder, open Time Machine, pick the latest backup, select the file and click Restore.
  5. Open the restored file and check it's the one you expect. To compare it exactly with the original, use Terminal (it only reads, and prints nothing if the two files are the same):
cmp ~/Documents/"Restore test"/photo.jpg ~/Pictures/photo.jpg

Change the two paths to your own. Then delete the Restore test folder and empty the copy from the Trash. If the file didn't come back, or Time Machine had no backup with it in, that's worth finding out now: see Time Machine stopped backing up.

Where do restored files go?

Back to the folder they came from. That's why it helps to open that folder before you open Time Machine.

Can I restore without the backup disk?

Sometimes. Time Machine saves a local snapshot on your Mac about every hour and keeps it for up to 24 hours, so a file changed or deleted today may still be there. Anything older needs the disk.

How often should I test?

Once a month is enough for most people. Test again after you change backup disk, turn on encryption or move to a new Mac.

Know a file really comes back.

Pangalin Backup Watch has a guided restore test. It makes one small test file, you restore it with Time Machine's own window, and it checks the file came back unchanged. It offers the test again every month. It only reads: it never starts, stops or changes a backup.

Every feature free for 3 days · then status and alerts free · $20 a year for the rest · It only reads · Notarised by Apple · Apple silicon, macOS 13 or later