DownloadApp Store

Time Machine on a Mac: set it up, restore files and restore a whole Mac

Also in日本語한국어繁體中文简体中文EspañolDeutschPortuguês (Brasil)Français

Quick answer

Quick answer

On macOS 27, connect a drive and choose Apple menu › System Settings › General › Time Machine › Add Backup Disk, and your Mac backs up every hour from then on. To get a file back, choose Browse Time Machine backups in the menu bar. To rebuild a Mac or move to a new one, use Migration Assistant. Here is what Time Machine keeps, for how long, and why iCloud doesn't replace it.

Download for MacDownload on the App Store

To back up a Mac on macOS 27 with Time Machine, connect an external drive, open Apple menu › System Settings › General › Time Machine, click Add Backup Disk, select the drive and click Set Up Disk. It then backs up every hour. To get a file back, choose Browse Time Machine backups from the Time Machine icon in the menu bar. To rebuild a whole Mac, use Migration Assistant.

How do you set up Time Machine on a Mac?

  1. Connect the drive and turn it on.
  2. Choose Apple menu › System Settings, click General, then Time Machine.
  3. Click Add Backup Disk, or the Add button if you already have one.
  4. Select the drive and click Set Up Disk. Your Mac may offer to erase it, ask whether to claim another computer's backups on it, and ask for a password if you turn on Encrypt Backup.

The first backup starts right away (Apple's steps). Apple suggests a USB or Thunderbolt drive with at least twice your Mac's storage, used only for backups. APFS is the preferred format, Mac OS Extended (Journaled) still works, and a Windows-formatted disk must be reformatted, which erases it (supported disks). Every restore from an encrypted backup needs its password, and Apple suggests a hint but no fix for a forgotten one.

What does Time Machine back up, and how do you leave things out?

Apple says it backs up files that weren't part of the macOS installation, such as apps, music, photos and documents. System files and the apps that came with macOS stay out.

To skip a folder, click Options in the same settings, click the Add button or drag items into the list, then click Done. The Remove button puts an item back. The backup disk is listed automatically, and excluded items still appear in local snapshots (Exclude files). Options also holds Back up frequency, for manual backups or an automatic schedule.

How often does it back up, and how long are backups kept?

Apple's schedule: hourly backups for the past 24 hours, daily backups for the past month, weekly backups for all previous months. When the disk is full, the oldest backups are deleted. On APFS, your Mac also keeps hourly local snapshots on its own disk for up to 24 hours.

For a backup right now, choose Back Up Now from the Time Machine icon in the menu bar. The same menu can stop or skip a backup and shows its progress. No icon? In System Settings › Control Center, set Time Machine to Show in Menu Bar (Start or pause a backup; more in our menu bar guide).

How do you restore files from Time Machine?

  1. Open a Finder window on the folder that held the item.
  2. Choose Browse Time Machine backups from the Time Machine icon (Apple), or open Time Machine with Spotlight.
  3. Go back with the arrows or the timeline on the right. The backup you're viewing is marked in red.
  4. Select the items and click Restore. They return to their original location (Restore items).

For an older draft of one document, many apps offer File › Revert To › Browse All Versions. For something in the Library folder the Finder hides, open it first with our hidden files guide.

How do you restore a whole Mac or move to a new one?

Connect the backup disk and open Migration Assistant from Applications › Utilities (a new Mac offers it during setup). Choose to transfer from a Mac, Time Machine, or startup disk, then pick the disk, a backup and what to bring. Large transfers can take hours (Restore your Mac from a backup). If the Mac won't start or was erased, reinstall macOS from macOS Recovery first, then choose Transfer from a Time Machine Backup (Recover all your files). Moving is a good time to remove apps you no longer use.

When the new Mac backs up to the old drive, Inherit Backup gives it the old history, which the old Mac then can't use (Apple).

Can Time Machine back up to a network drive or another Mac?

Yes, to a network drive that supports Time Machine over SMB, or to a folder another Mac shares. On that Mac, turn on File Sharing with SMB in System Settings › General › Sharing, add a folder, Control-click it, choose Advanced Options and turn on Share as a Time Machine backup destination. Then pick that folder when you add a backup disk (Back up to a shared folder).

Isn't iCloud already a backup?

Not the way Time Machine is. Apple's iCloud guide says changes you make on one device, deleting a file included, "automatically appear on all your devices", and recently deleted files can be recovered for 30 days (iCloud Drive). A Time Machine disk still holds last month's copy after the deletion has synced.

What you want What to do
Automatic backups General › Time Machine › Add Backup Disk
A backup this minute Time Machine icon › Back Up Now
A file as it was last week Browse Time Machine backups, then Restore
This Mac rebuilt, or a new one set up Migration Assistant
A copy away from your desk A second backup disk kept elsewhere

What doesn't Time Machine protect you from?

The honest limit: one backup drive usually sits beside the Mac it protects, so a fire, a theft or a dropped bag can take both. Apple supports backing up to several disks in rotation and suggests a disk in each place if you work in two. And because full drives drop the oldest backups, "all previous months" means as many as fit.

Do Time Machine and iCloud keep your Shimejiko desktop pets?

We make Shimejiko, a Mac app for animated Shimeji desktop pets. The copy from shimejiko.app keeps the packs you import in your home folder, at ~/Library/Application Support/Shimejiko/Packs/, with your Library list in library.json. They aren't part of the macOS installation, so by Apple's description they're in every backup unless you exclude them, and Migration Assistant moves them too.

Sync with iCloud, on by default in Shimejiko's Settings › General, brings your crew, settings and imported packs to another Mac on the same Apple Account. It's a sync, not a backup: remove a pack on one Mac and the next sync removes it from the other. Pro, a one-time $5.99 purchase, isn't tied to one Mac: click Restore in Settings › Pro and use your checkout email, on up to 3 Macs, or Restore purchases in the App Store edition.

Recorded on a MacBook
Five desktop pets asleep in a row on a MacBook's Dock under a browser and a Notes window, on a starry purple desktop
Five desktop pets asleep in a row on a MacBook's Dock under a browser and a Notes window, on a starry purple desktop

Recorded in the app: Shimejiko in her mushroom hat and four friends nap on the Dock. No backup runs in the clip, and the Time Machine steps above come from Apple's documentation, not from a test on Mac hardware for this article.

More from the blog

Guides
The pointer rests on Shimejiko's cap while two fingers stroke the trackpad and hearts float up

AI desktop pets: the robots on your desk and the characters on your screen

"AI desktop pet" means two different things. One is a small robot that sits on your desk, like EMO, Loona Deskmate or Anthropic's open-source Claude Desktop Buddy. The other is a character on your screen that chats through a language model, like Clippy or Project AIRI. Here is what each one does, what it costs, what it needs and what it sees and hears, and where Shimejiko fits: a desktop pet with no AI at all.

8 min read

Guides
Shimejiko holds a box in the welcome show’s drop area, and a new character pops out

How to use AirDrop on a Mac: send, receive and find your files

To AirDrop from a Mac, open Finder › AirDrop and drag a file onto the recipient. Going the other way, tap Share › AirDrop on the iPhone and pick the Mac. Here’s how to find what arrived and what to check when a device doesn’t appear or asks for a code.

4 min read

Guides
A character sits on a notes window and rides along as the window is dragged around

TADC shimeji: where Caine, Pomni and Jax packs are shared, and how to run them on a Mac

TADC shimeji are unofficial, fan-made Shimeji-ee packs of The Amazing Digital Circus characters such as Caine, Pomni, Jax and Kinger, shared on the artists' own Tumblr, itch.io and DeviantArt pages, usually as a Windows zip that needs Java. Download from the artist's page, keep the credit and skip extensions and re-upload sites. On a Mac, drop the zip on Shimejiko.

5 min read

Bring your crew home.

macOS 14 or later · Apple silicon and Intel

Apple's sandbox keeps knock and window throwing out of the Mac App Store edition. The direct download has every trick.