The quick answer
Plug in an external drive with at least twice your Mac's storage, then open System Settings > General > Time Machine, click Add Backup Disk, pick the drive and click Set Up Disk. Turn on encryption if you want the backup password-protected. The first backup starts right away.
After that, Time Machine works on its own: it keeps hourly backups for the past 24 hours, daily backups for the past month and weekly backups for earlier months, and deletes the oldest ones when the drive fills up.
Time Machine is the backup tool built into every Mac, and it’s the simplest place to start if you’ve never backed up before. You don’t need to buy any software, just a drive to back up to, and once it’s set up it runs by itself.
What Time Machine backs up and how long it keeps it
Time Machine is the backup app built into every Mac, and it copies your apps, music, photos, email and documents to a separate drive every hour.
It leaves out macOS itself and the apps that came with it, which is why restoring a whole Mac starts with reinstalling macOS. Everything you added yourself goes into the backup unless you exclude it.
Older backups thin out over time: Time Machine keeps hourly backups for the past 24 hours, daily ones for the past month and weekly ones for all earlier months. When the drive fills up, it deletes the oldest to make room, but never the last remaining backup. So you can get back a file as it was this morning, two weeks ago, or last spring if the drive is big enough.
On your Mac’s own APFS disk, Time Machine also keeps hourly local snapshots for up to 24 hours. They let you rescue a file you deleted an hour ago even when the backup drive isn’t plugged in, but they sit on the same disk as your files, so they’re no help if that disk fails. For that you need the drive.
What drive to get
Get an external USB or Thunderbolt drive with at least twice your Mac’s storage capacity: for a Mac with 1 TB of storage, a 2 TB drive or bigger.
That’s Apple’s recommendation, and it goes by the total size of your Mac’s disk, not how full it is. The extra room is what buys you those months of older versions. A smaller drive still works, and your Mac tells you if it needs more space. Your Mac counts drive space the same way the box does, so a 2 TB drive shows up as about 2 TB. On a Windows PC the same drive looks smaller, and the TB to GB converter shows why.
Plan to use the drive only for Time Machine, and copy off anything already on it first. Setup may erase it, and a drive formatted for Windows has to be reformatted, which deletes what’s on it.
Step 1: Connect the drive
Plug the drive into a USB-C or Thunderbolt port on your Mac and turn it on if it has a power switch.
A box saying Time Machine can back up your Mac may appear. Hold the pointer over it, click Options, then Set Up, and you land in the same setup as Step 2. If nothing appears, open the settings yourself.
Step 2: Add it as a backup disk
Open Apple menu > System Settings, click General in the sidebar, then click Time Machine.
- Click Add Backup Disk, or the + button if you already have a backup disk.
- Choose your drive from the list and click Set Up Disk.
- In the window that opens, you can limit how much space backups may use and turn on Encrypt Backup. Click Done.
- If your Mac asks to erase the drive, click Erase. This deletes everything on it.
- If you chose encryption, type a password twice and add a hint.
These paths are for macOS Ventura 13 and later, including macOS 27 Golden Gate. In macOS Monterey 12 and earlier, the setting is in Apple menu > System Preferences > Time Machine.
Should you encrypt? Yes, if the drive could be lost or stolen, such as a small drive you carry in a laptop bag. Without the password nobody can read the backup, and that includes you, so store it in your password manager. Your Mac may also ask for it when you connect the drive or after a restart. If you skip it now, you can Control-click the drive in Finder later and choose Encrypt. On a drive plugged into your Mac, your existing backups are kept.
Step 3: Let the first backup finish
The first backup starts as soon as setup is done, and because it copies everything, it can take hours.
Apple suggests setting up in the evening so it runs overnight, and you can keep working in the meantime. Later backups copy only what changed, so they’re much quicker.
To see progress, click the Time Machine icon in the menu bar. If it isn’t there, go to System Settings > Menu Bar and select Time Machine under Menu Bar Controls. The same menu has Back Up Now and Stop This Backup. On a laptop, System Settings > General > Time Machine > Options lets you choose whether to back up on battery power and how often.
Before you unplug the drive, eject it in Finder or shut down the Mac. Backups pick up again when you plug it back in.
Step 4: Check that it worked
Click the Time Machine icon in the menu bar to see the date and time of the latest backup.
Then do a real test. Open a Finder window, press Command-Space, type Time Machine and press Return. Step back through your backups with the arrows next to the window and check that a file you know well is there. It’s the same way you’ll get a file back when you need one.
Back up over the network to another Mac or a NAS
Time Machine can also back up over your home network to a folder shared by another Mac, or to a NAS (network storage box) that supports Time Machine over SMB.
It’s slower than a drive plugged straight in, so Apple suggests a direct connection if speed matters. To use a second Mac, set up the shared folder on that Mac:
- Open System Settings > General > Sharing and turn on File Sharing.
- Click the Info button next to File Sharing, then Options, and check that Share files and folders using SMB is on. Click Done.
- Under Shared Folders, click + and pick the folder that will hold the backups.
- Control-click the folder, choose Advanced Options, turn on Share as a Time Machine backup destination, and click OK.
Then, on the Mac you’re backing up, choose that folder under Add Backup Disk in Time Machine settings. Both Macs should run macOS 11 or later.
For a NAS, follow the maker’s instructions for Time Machine over SMB. Apple no longer recommends an old AirPort Time Capsule or AirPort Extreme, because they use AFP, which macOS 27 doesn’t support.
Restore a single file
To get back one file or folder, open Time Machine, go back to a date when the file still existed, select it and click Restore.
- Open the Finder window where the file used to be. For a file that was on the desktop, you can skip this.
- Press Command-Space, type Time Machine and press Return. It may take a moment to connect to the backup.
- Use the arrows, or the timeline on the right edge of the screen, to move back through the backups.
- Select the file, folder or several items and click Restore.
Restored items go back to their original location. If you only want an older version of a document you still have, many apps also offer File > Revert To > Browse All Versions.
Restore a whole Mac with Migration Assistant
To move everything from a Time Machine backup onto a new or erased Mac, use Migration Assistant.
- Connect the backup drive and turn it on.
- Open Migration Assistant. On a new Mac it’s part of setup; otherwise it’s in Applications > Utilities.
- Choose to transfer from a Mac, Time Machine backup or startup disk, then click Continue.
- Select your backup drive and click Continue, then select a backup and click Continue. To use an older backup, or if Continue is dimmed, click the arrow next to the backup shown and pick one.
- Choose the categories to bring over, or open one to pick single items, and click Continue.
The transfer can take hours. If the Mac won’t start up normally, reinstall macOS first, then run Migration Assistant.
Keep a second copy somewhere else
One Time Machine drive sitting next to your Mac won’t survive a fire, a flood or a burglar who takes both, so keep a second copy in another place.
The simplest way is a second backup drive, added in Time Machine settings like the first. Time Machine takes turns between them, and each gets the changes since it was last used, so you can keep one at work or at a relative’s house and swap them now and then.
The cloud covers part of it. iCloud keeps photos, contacts, calendars and notes, and iCloud Drive can hold your Desktop and Documents folders, but not your whole Mac. For that, you’d need an online backup service that copies the entire Mac.
If something does not work
How long does the first Time Machine backup take?
Apple gives no fixed time, because it depends on how much data you have and how the drive is connected. A first backup copies everything, so plan on hours and let it run overnight. Backups to another Mac or a NAS also depend on your network's speed, and Apple says a drive plugged straight into the Mac is usually faster.
Can I use my Time Machine drive for other files too?
Apple recommends using the drive only for Time Machine. Files you keep on the backup disk are not themselves backed up, and they take space away from your backups. If you really want to share one drive, Apple suggests adding a separate APFS volume for your other files in Disk Utility, while keeping the Time Machine volume at twice your Mac's storage.
Does Time Machine back up iCloud Drive files?
Only the files that are actually on your Mac. With Optimize Mac Storage on, your Mac can keep some iCloud Drive documents only in iCloud when it needs space, and those aren't in your Time Machine backup. Turn Optimize Mac Storage off in System Settings > your name > iCloud > Drive, and everything in iCloud Drive stays on your Mac and gets backed up. Photos works the same way. In Photos > Settings > iCloud, choose Download Originals to this Mac to keep full-size copies on the Mac.
How do I exclude a folder from Time Machine?
Open System Settings > General > Time Machine, click Options, then click the + button and pick the folder, or drag it into the list. Click Done. The exclusion applies to every backup disk you use. Excluded items still show up in the local snapshots Time Machine keeps on your Mac's own disk.
How do I see when my last Time Machine backup ran?
Click the Time Machine icon in the menu bar. The menu shows the date and time of the latest backup, and the progress of one that's running.
What happens when the Time Machine drive is full?
Time Machine deletes the oldest backups to make room for new ones, but it never deletes the last remaining backup. If the drive is too small for a full backup, your Mac shows a notification asking for more space.
Sources
- Apple Support, Back up your Mac with Time Machine
- Apple Support, Back up your files with Time Machine on Mac (macOS 27)
- Apple Support, Choose a backup disk and set encryption options on Mac (macOS 27)
- Apple Support, Choose a backup disk and set encryption options on Mac (macOS Monterey 12)
- Apple Support, Keep your Time Machine backup disk for Mac secure
- Apple Support, Backup disks you can use with Time Machine
- Apple Support, Back up to a shared folder with Time Machine on Mac (macOS 27)
- Apple Support, If Time Machine on your Mac recommends a larger backup disk
- Apple Support, If Time Machine takes a long time to back up
- Apple Support, Time Machine settings on Mac (macOS 27)
- Apple Support, Start, pause or resume a Time Machine backup on Mac (macOS 27)
- Apple Support, Exclude files from a Time Machine backup on Mac (macOS 27)
- Apple Support, Restore items backed up with Time Machine on Mac (macOS 27)
- Apple Support, Restore your Mac from a backup
- Apple Support, Use Time Machine to back up to multiple disks on Mac (macOS 27)
- Apple Support, Change Menu Bar settings on Mac
- Apple Support, How to back up your Mac
- Apple Support, Store files in iCloud Drive on Mac
- Apple Support, MacBook Pro Essentials, Back up and restore your Mac (iCloud Drive and Optimize Mac Storage)