Sub topic 10
Restoring files and folders
This chapter assumes Time Machine is already backing up to a destination, and that you are comfortable with Finder and Terminal. It covers recovering single files, folders, and earlier versions of documents.
How restoring works
Time Machine keeps a browsable history of your files. When you enter Time Machine, you see a Finder window with a timeline. Each point on the timeline is a backup, or a local snapshot if your backup disk is not connected. You pick a point, find the item, and restore a copy. Restoring never deletes your backups.
Restore a file or folder
- Connect your backup disk, or make sure the network destination is reachable.
- In Finder, open the folder that held the item. For a deleted file, open the folder it was in.
- Open the Time Machine menu in the menu bar and choose Browse Time Machine Backups. If the menu is not shown, open Time Machine settings and turn on the menu bar option, or open Time Machine from Launchpad.
- Use the arrows beside the window or the timeline to move to an earlier backup.
- Select the item. Press the Space bar to preview it in Quick Look and confirm it is the right version.
- Click Restore.
The item returns to its original location. If a file with the same name exists there, Finder asks whether to keep both, replace, or stop. Choose Keep Both when you are unsure. You can then compare the two files and delete the one you do not need.
To restore to a different place, Control-click the item and choose Restore to…, then pick a folder. This is a safe way to inspect an old version without touching the current one.
Restore an earlier version of a document
Some apps keep versions of a document. In the timeline you can step back through the dates and preview each one. Restore the version that has the content you want, ideally with Keep Both so the current file stays.
Restore from a local snapshot
If the backup disk is away, Time Machine can still show recent snapshots stored on your Mac. Snapshots are covered in an earlier chapter. They appear in the same timeline, but they only cover recent days. Restoring from them works the same way.
Restore from the command line
You can also copy files out of a backup in Terminal. First find the latest backup:
tmutil latestbackupThe path it prints points at the backup. You can browse below it and copy a file with cp. Terminal may need Full Disk Access to read this location.
Common errors
| Symptom | Likely cause | What to do |
|---|---|---|
| The timeline is empty or the item is missing | The item was excluded, or it changed after the last backup | Check your exclusions and try another date |
| Restore fails with a permissions message | You lack access to the destination folder | Restore to another folder such as Desktop, then move the item |
| The backup disk is not listed | The disk or network share is not connected | Reconnect it and open Time Machine again |
| You overwrote the current file by mistake | You chose **Replace** | Open Time Machine again and restore an older version |
Exercise
Exercise
You deleted a report last week. You restored the folder from Time Machine, but a file named Report.docx already exists in it from a recent edit. Which option protects both versions, and why?
Show answer
Choose Keep Both. Time Machine restores the old file next to the current one with a modified name, so you can compare them and delete the one you do not need. Replace would overwrite the current file.
Exercise
You want to look at an old version of a file without changing the current one. How do you do this in Time Machine?
Show answer
Select the item in the timeline, Control-click it, choose Restore to…, and pick a different folder, such as the Desktop.