How-toMac
How to back up your Mac with Time Machine
Set up Time Machine on an external drive so your Mac backs up automatically, then learn how to restore a lost file or a whole Mac from the backup.
- Mac
Time Machine, the backup tool built into every Mac, saves copies of your files automatically once it is set up with an external drive, so you can bring back a deleted file or recover after a problem. Setup, checking and restoring are covered here.
What you need
- An external drive, such as a USB or Thunderbolt drive. Apple says to use a storage device with at least twice the storage capacity of your Mac. For example, a Mac with 512 GB of storage needs a backup drive of about 1 TB or more.
- A drive used only for backups. Apple advises keeping the drive for Time Machine alone.
- Time. The first backup can take longer than you expect, and you can keep using the Mac while it runs. Later backups copy only what has changed.
Setup may erase the drive
While you set up, your Mac may ask you to erase the drive so that it can be used for Time Machine. Erasing deletes everything on it. If the drive holds files you want, copy them elsewhere first or choose a different drive.
Text version of this diagram
- Connect: Plug in the external drive
- Open settings: General, then Time Machine
- Add disk: Click Add Backup Disk, choose the drive
- Set up: Click Set Up Disk and wait for the first backup
Set up Time Machine
macOS Ventura and later
- Connect the external drive to your Mac.
- Choose .
- Click Add Backup Disk (or the Add button).
- Select your drive, then click Set Up Disk.
- If your Mac asks you to erase the drive, read the warning above, then confirm only if the drive is empty or you no longer need what is on it.
- If your Mac asks whether to claim backups made on another computer, choose according to what you want. Claiming makes them part of this Mac's backups.
- To protect the backup, turn on Encrypt Backup when it is offered, and create a backup password. Write the password down and keep it safe. You need it to restore files.
The first backup starts by itself. On macOS Monterey and earlier, use and click Select Backup Disk.
How Time Machine keeps your backups
Apple says Time Machine keeps hourly backups for the past 24 hours, daily backups for the past month, and weekly backups for all earlier months. When the disk fills up, the oldest backups are deleted.
Text version of this diagram
- Past 24 hours: Hourly backups. One backup every hour
- Past month: Daily backups. One backup for each day
- Older months: Weekly backups. One backup for each week
- Backups run while the drive is connected and the Mac is on. On a laptop, hourly backups on battery power happen only if you turn on Back up on battery power under Options.
- If macOS itself is damaged, reinstall macOS first, then restore your files from the backup.
Leave out files you do not need
- Open and click Options.
- Under Exclude from Backups, click Add and choose a folder or file, such as a large folder of downloads you can get again.
- Click Remove to take an item off the list later.
Check that it worked
- Open .
- Check that your backup disk is listed there. The settings also show the state of the backup, such as the latest one or one in progress.
- Leave the Mac on and connected until the first backup finishes.
Disconnecting safely
Eject the backup disk, or shut down the Mac, before you unplug the drive. Keep it connected when you can, because backups only run while the drive is attached.
Restore files from a backup
Bring back one file or folder
- Connect your backup disk and open the folder that held the missing item. For an item that was on the desktop, you do not need to open a window.
- Open Time Machine. Press Command + Space, type Time Machine and press Return. If a message appears, wait while the Mac connects to the backup disk.
- Use the arrows beside the windows to move back through earlier backups. The selected backup is highlighted on the timeline at the right.
- Select the items you want, then click Restore. Restored items return to their original location.
Restore a whole Mac
If macOS was reinstalled or you moved to a new Mac, use Migration Assistant. If macOS cannot start, reinstall it first. See how to reinstall macOS from Recovery.
- Connect and turn on your backup disk.
- Open Migration Assistant from the Utilities folder in Applications, or from Spotlight. Enter your administrator password if asked.
- Choose the option to transfer from a Mac, Time Machine backup or startup disk, then click Continue.
- Select your Time Machine disk, then choose the backup you want. To use an older one, expand the list.
- Choose the categories to transfer, then continue and follow the prompts. The transfer can take hours.
- When it finishes, quit Migration Assistant and log in to the migrated account.
If something goes wrong
- The drive does not appear in the list: try another cable or port, and check that the drive has power if it needs its own adapter.
- The disk is full: Time Machine deletes the oldest backups. If you need more history, use a larger drive. The same lack of space can affect your Mac itself, so see what to do when your Mac storage is full.
- The Mac will not start: your backup is what protects you. See what to try when your Mac will not start.
Frequently asked questions
Is Time Machine enough on its own?
It protects against deleted files and a failed disk, but a backup kept next to the Mac is lost in a fire or theft. Many people also keep a second copy elsewhere, such as another drive stored away from home.
Can I use the same drive for backups and for other files?
Apple advises keeping the drive for Time Machine only. Advanced users can add a separate APFS volume for other files, but the Time Machine volume still needs twice your Mac's capacity.
Do I have to use Apple's Time Machine?
No, but it is free, built in and simple. If you use another backup program, download it only from the maker's own website or the Mac App Store. Never install backup software that a caller or a pop-up told you to get.
I forgot my backup password. Can I still restore?
No. An encrypted backup cannot be opened without its password. Keep the password somewhere safe when you set it.
Was this guide helpful?
Thank you for your rating.
Ratings are not available right now. You can still use the contact page to tell us what you think.
Rating this guide needs JavaScript. You can send feedback on the contact page instead.
Official resources used
Pages consulted while preparing this guide. Check them for the latest details.
Need more help?
If this guide did not solve your problem, send us a message and tell us what you tried.
Beware of fake support
Real support never asks you to call an unfamiliar number, pay with gift cards or let a stranger control your computer.