Sub topic 2
What Time Machine does
This chapter explains what Time Machine is, what it copies, how it stores versions of your files, and where it stops. It assumes you can use Finder and know what an external drive and a network share are. Later chapters cover choosing a destination, setup, and restoring.
What Time Machine is
Time Machine is the backup tool built into macOS. It copies the contents of your Mac to a separate destination, such as an external drive or a network share. It keeps earlier versions of your files, so you can go back to how a file looked last week or recover one you deleted by mistake.
Time Machine is a versioned backup, not a mirror. A mirror, such as a cloned disk, holds only the current state. If you delete a file and the mirror updates, the file is gone from both. Time Machine keeps the old copies until it needs the space.
What it backs up
By default Time Machine backs up everything on the startup disk that cannot be recreated easily:
- Your user accounts and home folders, including Documents, Desktop, Pictures, Music, and Movies.
- Apps installed on the Mac.
- System settings and preferences.
- macOS itself, so a full restore can bring back the system as well as your files.
It skips data that macOS can regenerate or that has no value after a restart. Examples are caches, the Trash, Spotlight indexes, and virtual memory files. You can exclude more items yourself, which a later chapter covers.
Some data is only partly on your Mac. If iCloud Drive or Photos uses "Optimize Mac Storage", older files may exist on the Mac only as placeholders. Time Machine copies what is stored locally, so those files are not fully protected by it. Treat iCloud as syncing, not as a backup.
How a backup runs
The first backup copies everything. Depending on how much data you have and how fast the destination is, it can take hours. After that, each backup is incremental: Time Machine finds what changed since the last backup and copies only that.
Two points follow from this cycle:
- Backups only happen while the destination is reachable. If you unplug the drive or leave the network, Time Machine waits and resumes when the destination returns.
- Taking a snapshot first means the backup captures a consistent view of the disk, even if you keep working while it runs.
How versions are stored
On a disk formatted as APFS, Time Machine stores each backup as a snapshot of the volume. Snapshots share unchanged data, so a backup that is hourly in name takes space only for what changed. Older destinations formatted as Mac OS Extended used folders full of hard links to the same effect, and network destinations use a disk image file. You normally never need to look inside these structures. Open them through Time Machine, not by hand.
You can see which destinations are configured from Terminal:
tmutil destinationinfoThe output lists each destination's name, kind (local or network), and ID.
How long versions are kept
Time Machine thins backups over time:
| Age of backup | What is kept |
|---|---|
| Last 24 hours | Hourly backups |
| Last month | Daily backups |
| Older than a month | Weekly backups |
When the destination fills up, Time Machine deletes the oldest backups to make room. Recent history is dense and distant history is sparse. The next chapters cover the schedule and thinning in detail. For now, the practical consequence is that the destination's size decides how far back you can go. A disk much larger than your data holds months of history, and a disk barely larger than your data holds little.
Local snapshots
If your Mac's own disk has free space, Time Machine may also keep local snapshots there. These are copies of your recent state stored on the startup volume. They let you recover recent versions even when the backup disk is unplugged, which helps on a laptop that travels.
macOS can remove local snapshots automatically when the disk runs low on space. They are a convenience, not a backup, because they live on the same disk as your data. If that disk fails, they fail with it.
What you can do with it
When a backup exists, Time Machine gives you two kinds of recovery:
- File and folder recovery. You open the Time Machine browser from inside an app or Finder, step back through the timeline, and restore the version you want.
- System recovery. You restore a whole Mac from macOS Recovery, or use Migration Assistant to move accounts, apps, and settings to a new Mac.
Both are covered in their own chapters. Both depend on a backup that actually completed, which is why a later chapter covers verifying backups.
What it does not do
Knowing the limits helps you place Time Machine in a wider plan:
- It is not a bootable clone. You cannot plug the backup disk into another Mac and start from it. You restore from it.
- It protects one Mac. It does not protect data that never lived on the Mac, such as files only on another computer.
- It needs the destination present. A Mac that is away from its backup disk goes unprotected, except for local snapshots.
- It is one copy in one place. A backup disk sitting next to the Mac is lost in the same fire or theft. A complete plan adds an off-site copy.
- It can miss files that are still being written. Large, constantly changing files, such as some database or virtual machine files, may be captured in an inconsistent state.
Checking the current state
You can ask macOS what Time Machine is doing right now:
tmutil statusThe output reports whether a backup is running and, if so, how far along it is. This is a quick way to confirm that a backup actually started after you connect a disk.
Common misunderstandings
- "Time Machine backs up only my documents." By default it backs up the whole startup disk apart from regenerable items.
- "If it is on iCloud, it is backed up." iCloud syncs changes, including deletions, across your devices. It is not versioned backup of your entire Mac.
- "Hourly backups mean I can restore any hour from last year." Old hourly backups are thinned to daily and then weekly versions.
- "A full backup disk breaks Time Machine." It deletes the oldest backups to continue. It only complains if it cannot fit even one new backup.
Exercise
You deleted a document at 9:00 this morning. The last backup ran at 8:00. Your backup disk has been unplugged since yesterday evening, and your Mac has free space. Can you possibly recover the file, and from where? What would change if the Mac's internal disk failed?
Show answer
Possibly. If local snapshots are enabled, the Mac may hold a snapshot from before 9:00 on its own disk. Without that, the file is not in the unplugged destination's data, because the 8:00 backup could not have run while the disk was unplugged, so the most recent backup on the disk predates the file's last changes. If the internal disk failed, local snapshots would be lost with it, and you would depend entirely on the backup disk, which holds only data up to yesterday evening.
Exercise
A colleague says Time Machine keeps hourly backups forever. Using the thinning schedule, explain what is wrong and what limits how far back history goes.
Show answer
Time Machine keeps hourly backups only for the last 24 hours, daily backups for the last month, and weekly backups for older periods. When the destination fills up, it deletes the oldest backups. How far back you can go therefore depends on the destination's capacity relative to the amount of data and how fast it changes.