Sub topic 3
Preparing: backup, free space, and power
An update can fail halfway because the disk is full, the battery dies, or a bug corrupts data. Spending ten minutes on three checks makes both outcomes unlikely, and it makes a failure recoverable if it still happens. This chapter covers those checks: a current backup, enough free storage, and stable power.
This chapter assumes you have an administrator account, you can open System Settings and Terminal, and you know how to tell whether your Mac is eligible for the update (covered in the previous chapter). The commands run without sudo, and none of them change your system.
Why preparation matters
A macOS update replaces the operating system and rewrites system files, and a major upgrade also migrates settings and databases for the apps you use. Apple tests this process heavily, but three conditions cause most of the problems:
- No usable backup. If the update corrupts data or the Mac won't boot, a backup is the only way to get your files back.
- Too little free space. The installer needs room to download, unpack, and stage the new system before it removes the old one. Running out of space mid-install can leave the Mac needing recovery.
- Interrupted power. A laptop that shuts down during the installation phase may need to be restored from macOS Recovery.
The diagram shows the order of the checks. Backup comes first because freeing space may involve deleting files, and you want those files safe before you do.
Backup
What Time Machine gives you
Time Machine is the backup tool built into macOS. It copies your files to an external drive or a network location and keeps hourly, daily, and weekly versions. After a failed update you can restore individual files, or restore the whole Mac from macOS Recovery. To set it up, open System Settings > General > Time Machine and add a backup destination.
Two things are easy to get wrong:
- iCloud is not a backup. iCloud Drive syncs files between devices. If a file is deleted or damaged on one device, the change syncs to the others. It does not hold a snapshot of your Mac from before the update.
- A backup you never checked may be empty. A drive that was unplugged for months, or a destination that has filled up, leaves you with an old backup and no warning at update time.
Checking when the last backup ran
The menu in System Settings > General > Time Machine shows the latest backup time. In Terminal, tmutil reports the path of the most recent backup, along with the df check for free space that follows in the next section:
df -h /
tmutil latestbackupThe latestbackup path ends in a timestamp such as 2026-11-26-214503.backup, which is the date and time that backup completed. If the timestamp is days or weeks old, run a new backup before you continue.
If no backup destination is connected or configured, tmutil latestbackup prints an error instead of a path. Treat that error as a failed check. It means Time Machine has no backup it can reach.
You can run a backup on demand from Terminal with tmutil startbackup. Add --block if you want the command to wait until the backup finishes. In the Time Machine menu bar item, Back Up Now does the same thing.
Local snapshots
On Macs that use APFS (the default file system since macOS High Sierra), Time Machine also keeps local snapshots on the startup disk. These are read-only copies of the disk's state at a point in time, and macOS deletes them automatically when it needs space. They help with accidental deletions, but they live on the same disk as the system. If the disk fails or the Mac cannot boot, they are lost with it. Do not count a local snapshot as your pre-update backup. Use an external or network backup.
A short backup checklist
- Connect the backup drive, or confirm the network destination is reachable.
- Run Back Up Now and wait for it to finish.
- Check the timestamp from
tmutil latestbackup. - Spot-check one file by browsing the backup in Time Machine, so you know it can be read.
- Keep important files that exist only on this Mac (photos not in iCloud, project folders) in a second location if the backup disk is old.
Free space
How much you need
The amount varies by macOS version and by Mac. A point update such as a security release often needs a few gigabytes. A major upgrade needs more because the installer is large and the system needs working room while it installs. As a planning figure for a major upgrade, keep at least 25 to 35 GB free, and check the requirements Apple lists for the specific release. Software Update will warn you if it knows the space is short, but the warning can come after you have already waited for the download.
Reading free space correctly
The System Settings > General > Storage pane and the df command can report different numbers for the same disk. The reason is purgeable space. This is space that macOS can reclaim on demand, such as cached files, local snapshots, and optimized iCloud content. Storage settings count purgeable space as available. df counts only space that is free right now.
During an update, macOS can usually reclaim purgeable space itself, but this is not guaranteed. A cautious rule: if df shows less than you need, free real space instead of relying on purgeable space.
On current macOS versions, the startup disk is split into a read-only system volume and a writable data volume that share one APFS container. Both volumes draw from the same pool of free space. The following command reads free space from the data volume, in gigabytes:
df -g /System/Volumes/DataThe Avail column is the number you care about. Using -h instead of -g gives human-readable units such as 48Gi.
Freeing space safely
Work from the safest actions to the most invasive:
- Empty the Trash. Files in the Trash still use space.
- Review Storage settings. System Settings > General > Storage lists categories by size and offers recommendations such as removing large files you no longer need.
- Remove unused apps and old installers. Old
.dmgand.pkgfiles in Downloads are common culprits. - Move large media to an external drive. Verify the copy opens before you delete the original.
- Delete old iOS device backups and simulator data if you develop software. They can occupy tens of gigabytes.
Free space after the backup, not before. If you delete a file and then discover you needed it, the backup still has it.
Power
Laptops
The installation phase writes many system files, and the Mac restarts one or more times. If the battery runs out in that window, the Mac may fail to boot and need recovery. For a MacBook:
- Connect the charger before you start, and keep it connected until the update finishes.
- Do not close the lid during the download or the installation. Closing it can put the Mac to sleep and pause the work.
- Software Update may refuse to start, or delay the install, if the battery is low and the charger is not connected.
You can check the power source and charge from Terminal:
pmset -g battThe first line of output says whether the Mac is drawing from 'AC Power' or 'Battery Power', and the next line shows the charge percentage and state.
Desktops
A Mac mini, iMac, Mac Studio, or Mac Pro has no battery to protect it from a power cut. If your area has unstable power, plug a desktop into an uninterruptible power supply (UPS) before a major upgrade. A power cut during the install is the same risk as a dead laptop battery.
Network and time
The download is usually the slowest part. A wired connection or a stable Wi-Fi network avoids failed downloads. Start the update when you can leave the Mac alone. A major upgrade can take from 30 minutes to over an hour, plus the download time, and the screen may show a progress bar with an uncertain time estimate for some of that.
A preflight script
The checks above can be combined into a short script that you run before you start. This version reports the macOS version, the free space on the data volume, the latest backup, and the power source. Save it as preflight.sh, make it executable with chmod +x preflight.sh, and run it with an optional minimum free space in GB (the default is 30).
#!/bin/bash
# preflight.sh - quick checks before a macOS update
min_gb=${1:-30}
echo "macOS version: $(sw_vers -productVersion) (build $(sw_vers -buildVersion))"
avail_gb=$(df -g /System/Volumes/Data | awk 'NR==2 {print $4}')
echo "Free space: ${avail_gb} GB"
if [ "$avail_gb" -lt "$min_gb" ]; then
echo "WARNING: less than ${min_gb} GB free"
fi
echo "Latest backup:"
tmutil latestbackup 2>&1
echo "Power:"
pmset -g batt | head -n 1The script reports problems but does not fix them, and that is deliberate. Choosing what to delete or when to back up is a decision for you. Also note that df -g rounds to whole gigabytes, which is accurate enough for this check.
Common mistakes
| Mistake | Consequence | Better approach |
|---|---|---|
| Relying on iCloud as the backup | No restorable copy of the system or non-synced files | Use Time Machine or another full backup |
| Backing up days before the update | New work since then is lost if recovery is needed | Run **Back Up Now** right before you update |
| Trusting Storage settings alone | Purgeable space may not be reclaimed in time | Confirm with `df -g /System/Volumes/Data` |
| Starting on battery power | The Mac may shut down during installation | Connect the charger first |
| Deleting files before the backup | Deleted files are not in the backup | Back up first, then free space |
| Closing the lid mid-update | Sleep pauses the work | Leave the lid open until the update finishes |
Exercises
Exercise
Your Storage settings show 40 GB available, but df -g /System/Volumes/Data shows an Avail value of 18. A major upgrade needs about 30 GB. Which number should you trust, and what do you do?
Show answer
Trust the df value. Storage settings include purgeable space (caches, local snapshots), which macOS may not reclaim in time. Treat 18 GB as the real free space. It is below the 30 GB target, so free about 12 GB or more by emptying the Trash, removing unused apps and old installers, or moving large files to an external drive, after confirming your backup is current. Then run df again.
Exercise
tmutil latestbackup prints a path ending in 2026-11-02-091500.backup, and today is 2026-11-27. What should you do before updating, and why is a local snapshot not an acceptable substitute?
Show answer
Run a new backup (Back Up Now, or tmutil startbackup --block) and confirm the new timestamp with tmutil latestbackup, because the existing backup is about 25 days old and would miss recent work. A local snapshot is stored on the same startup disk as the system, so it is lost if the disk fails or the Mac cannot boot. It is not an independent backup.
Exercise
A colleague plans to start a major upgrade on a MacBook at 15% battery, "because the charger is in the other room." Name two risks and the correct preparation.
Show answer
The battery could run out during installation, which can leave the Mac unable to boot and in need of recovery. Software Update may also refuse or delay the install because the battery is low. Connect the charger first, confirm with pmset -g batt that the Mac shows 'AC Power', and keep the lid open until the update finishes.