Sub topic 12
Setting up Time Machine
This chapter assumes you have finished Setup Assistant, created your Mac user account, and installed the current macOS updates. You also need an external drive or a network backup destination. Time Machine is the backup tool built into macOS. It keeps hourly, daily and weekly copies of your files, so you can restore a file or a whole Mac.
What Time Machine backs up
Time Machine backs up your files, apps, settings and system data to a destination you choose. After the first full backup, it copies only what changed. It also thins out old backups to save space. It keeps hourly backups for the past 24 hours, daily backups for the past month, and weekly backups until the drive is full. Then it deletes the oldest ones.
iCloud sync is not a backup. If you delete a file in iCloud Drive, the deletion syncs to your other devices. Time Machine keeps a separate history that you can restore from.
Choose a backup destination
| Destination | Notes |
|---|---|
| External USB or Thunderbolt drive | Simplest option. Best performance. |
| Network share (SMB) or NAS | Convenient, but the first backup is slow over Wi-Fi. |
| Another Mac sharing a folder | Works, but depends on that Mac staying on. |
Pick a drive at least twice the size of the data you want to back up. A larger drive gives you a longer history.
Turn on Time Machine
- Connect the external drive.
- Open System Settings, choose General, then Time Machine.
- Click Add Backup Disk (the + button on some versions).
- Select the drive and click Set Up Disk.
- Turn on Encrypt Backup and enter a password. Store it in a safe place.
- Click Done. The first backup starts automatically.
Check the setup from Terminal
You can confirm that a destination exists with tmutil. This is the same command listed in the final verification chapter.
tmutil destinationinfoThe output lists each destination with its name, kind and ID. If no destination is set up, the command says so. You can also run tmutil status to see whether a backup is running.
How a backup runs
Common problems
- The drive does not appear. Check the cable and port. If the drive uses a format macOS cannot write to, such as NTFS, erase it in Disk Utility first. Choose APFS for a drive used only with Time Machine.
- The first backup is very slow. This is normal. Keep the Mac plugged in and awake. A wired connection helps with network destinations.
- Backups stop with an error. Make sure the drive is connected and has free space. Reconnect it, then choose Back Up Now from the Time Machine menu.
Restoring files
Open the folder that held the file, then open Time Machine from the menu bar or from Spotlight. Use the timeline to pick a date, select the file, and click Restore. On a new Mac, you can also restore a full backup with Migration Assistant, which the earlier chapter on moving data covers.
Exercise
A friend says iCloud Drive makes Time Machine unnecessary. Give one reason this is wrong, and name the Terminal command that shows whether a Time Machine destination is configured.
Show answer
iCloud Drive syncs changes, including deletions, to all your devices, so a deleted or overwritten file is lost everywhere. Time Machine keeps a separate history that you can restore from. The command is tmutil destinationinfo.
Exercise
After you choose a backup disk, why should you turn on Encrypt Backup, and what happens if you forget the password?
Show answer
Encryption protects your data if the drive is lost or stolen. If you forget the password, the backup cannot be read and Apple cannot recover it for you.