How-To Guides5 min read

How to Set Up Encrypted Time Machine Backups on macOS (APFS, Exclusions, and tmutil)

Format a dedicated APFS Encrypted backup volume, configure Time Machine safely without overwriting existing files, exclude heavy build caches, and verify snapshots via tmutil.

Connect an external USB-C or Thunderbolt drive at least twice your Mac's capacity, open System Settings under General and Time Machine, add the disk, and enable Encrypt Backup so macOS formats an APFS Encrypted volume and stores hourly, daily, and weekly backups.

Key takeaways

  • Always back up or move existing files off an external drive before formatting it for Time Machine.
  • Use a separate APFS volume rather than mixing loose files onto your Time Machine backup volume.
  • Exclude rebuildable folders like Xcode DerivedData or virtual machines to keep backups fast.

Quick facts

  • Apple recommends a backup drive with at least twice the storage capacity of your Mac's internal SSD.
  • APFS or APFS Encrypted is the preferred filesystem format for modern Time Machine backup disks.
  • Time Machine reserves an entire APFS volume, so shared physical drives need a second APFS volume created in Disk Utility.
  • Switching a locally attached Time Machine disk to encrypted in Finder preserves existing backups while encrypting them.
  • Time Machine keeps hourly backups for 24 hours, daily backups for a month, and weekly backups until space fills.

Cloud file sync is not a system backup. Deleting a folder by mistake or hitting a bad update syncs the deletion straight to the cloud, whereas a local Time Machine disk lets you roll back individual files or restore your entire machine through macOS Recovery.

When I configure a new backup disk on a Mac, I insist on two guardrails from day one: an APFS Encrypted volume and smart exclusions for multi-gigabyte build caches. An unencrypted backup drive lying on a desk holds every document, browser token, and SSH key in plaintext if someone picks it up.

Encrypted Time Machine Backup Architecture on macOS
Encrypted Time Machine Backup Architecture on macOS

Original SVG diagram by Ajay Kumar Chaturvedi (CC BY 4.0).

Prerequisites

Prepare the following before connecting your drive:

  • An external USB-C or Thunderbolt SSD/HDD (or a NAS supporting Time Machine over SMB) with at least twice the capacity of your Mac's internal drive.
  • Any existing files already saved on that external drive copied somewhere safe before formatting.
  • A password manager or secure offline notebook to record your Time Machine backup encryption password.

If you rely on a Windows-formatted NTFS or exFAT external drive that holds irreplaceable archives you cannot move elsewhere right now, I would skip formatting that drive until you buy a dedicated backup disk.

Step-by-Step Time Machine Setup

Step 1: Prepare a dedicated APFS volume if you share the drive

Backup Warning: Selecting a non-APFS or Windows-formatted drive inside Time Machine prompts macOS to erase the disk, permanently destroying every existing file on it. Verify the volume has no unbacked files before clicking Erase.

If the external disk is empty and dedicated solely to Time Machine, skip straight to Step 2. If the drive already uses APFS and you want to store separate archives on the same physical hardware, open Disk Utility (Applications > Utilities), select the external APFS container in the sidebar, click Edit > Add APFS Volume (or the + button in the toolbar), name it Time Machine, and leave your other files on the sibling volume. Apple explicitly notes that Time Machine reserves the entire chosen APFS volume for backups, so splitting via a second APFS volume keeps both datasets isolated while sharing total disk capacity.

Step 2: Add and encrypt the backup disk in System Settings

  1. Connect the external drive directly to a USB-C or Thunderbolt port on your Mac.
  2. Open Apple menu > System Settings, click General in the sidebar, and click Time Machine.
  3. Click Add Backup Disk (or +), select your drive or dedicated APFS volume, and click Set Up Disk.
  4. Turn on Encrypt Backup, enter a strong backup password and hint, and confirm if macOS asks to erase and initialize the volume.

Save that encryption password inside your password manager immediately. If your main Mac fails and you restore onto replacement hardware, macOS will ask for this backup password before decrypting the volume.

Step 3: Exclude rebuildable developer caches and virtual machines

By default, Time Machine backs up your applications, home folder, and settings. On engineering workstations, directories like Xcode DerivedData, Homebrew caches, or multi-gigabyte VM disk images churn constantly and inflate backup duration without adding recovery value.

You can exclude folders visually under Time Machine > Options > Exclude from backups, or add exclusions explicitly from Terminal using tmutil:

ZSH
tmutil addexclusion ~/Library/Developer/Xcode/DerivedData
tmutil addexclusion ~/Library/Caches/Homebrew
tmutil isexcluded ~/Library/Developer/Xcode/DerivedData

Notice that tmutil addexclusion without -p creates a sticky exclusion tied to the directory item, while -p binds to a fixed filesystem path and requires sudo plus Full Disk Access for Terminal. Verify with tmutil isexcluded so the output confirms [Excluded].

Step 4: Trigger and monitor your first backup

Start the initial sync immediately from the menu bar Time Machine icon (Back Up Now), or run an automatic-style backup in Terminal so you can inspect status cleanly:

ZSH
tmutil startbackup --auto
tmutil status

The first backup takes the longest because macOS copies your full baseline. Subsequent passes run incrementally, keeping hourly snapshots for 24 hours, daily snapshots for one month, and weekly snapshots for earlier months until space fills.

Step 5: Verify configured destinations and completed snapshots

Once the initial pass completes, verify your destination ID and confirm at least one completed backup timestamp exists on the drive:

ZSH
tmutil destinationinfo
tmutil listbackups

Always eject your external Time Machine drive from Finder (or shut down your Mac) before unplugging the USB-C cable so APFS backup transactions close cleanly.

Expected Result

tmutil destinationinfo lists your connected drive as a valid Time Machine destination, tmutil listbackups prints a timestamped backup directory on the APFS Encrypted volume, and macOS automatically maintains hourly, daily, and weekly recovery points whenever the drive is attached.

Troubleshooting

I forgot to enable encryption on an existing external Time Machine drive

If your drive is plugged directly into your Mac (not over a network share), you do not have to start from scratch. Control-click the Time Machine drive icon in Finder, choose Encrypt, enter an encryption password and hint, and click Encrypt Disk. Apple documents that converting a directly connected drive preserves your existing backup history while encrypting it in the background. Note that converting a network or NAS backup target erases existing unencrypted backups first.

Time Machine hangs on "Preparing backup" for an hour

A long "Preparing backup" phase usually happens after a large macOS point update or when an external drive has been disconnected for weeks, because Time Machine compares deep filesystem events and local APFS snapshots. Keep the drive attached and connected to AC power; if you run antivirus scanners, exclude the external backup mount from real-time scanning so file reads do not stall.

tmutil listbackups returns No backup destinations could be found

Grant Terminal Full Disk Access under System Settings > Privacy & Security > Full Disk Access, or make sure the encrypted external volume is currently mounted and unlocked in Finder before querying tmutil.

Sources