Mac Sleeps During Time Machine Backup? Keep It Awake
Time Machine stops when your Mac sleeps. Use Power Nap, caffeinate or a timed Glowmoth session with the display off, plus fixes for drives that spin down.
GuideUpdated 8 min read
On this page
Your Mac goes to sleep in the middle of a Time Machine backup, and the backup stalls or never finishes. Sometimes the external backup drive spins down or disconnects as well. A first backup of hundreds of GB can take hours, which is plenty of time for idle sleep to kick in.
Why the backup stops
Apple says that if the Mac is asleep or the backup disk isn't available at a scheduled backup, the backup isn't performed, and it resumes once both are available again. So sleep doesn't corrupt the backup, but it does pause it. A first backup that needs many hours can keep restarting.
The usual causes, most common first:
- Idle system sleep. The Mac sleeps after the inactivity time set in your energy settings. A running backup doesn't always stop it.
- Battery power. On a laptop, Time Machine's Back up on battery power option controls whether hourly backups run on battery. A long backup on battery also runs into low-battery sleep.
- A closed lid. A MacBook sleeps when you close the lid unless it has power and an external display.
- The drive sleeps or disconnects. An external drive can spin down on its own, or drop off when the Mac sleeps. This is separate from the Mac sleeping.
- A scheduled sleep or automatic log-out. A
pmsetschedule can sleep the Mac at a set time.
The display is not the issue. Only system sleep interrupts the backup, so the screen can go dark.
Pick a method
| Method | Cost | Screen can sleep | Stops at a set time | Limit |
|---|---|---|---|---|
| Power Nap | Built in | Yes | n/a | Only some Macs; use on the power adapter |
caffeinate -i | Built in | Yes | Yes, with -t | Terminal window must stay open |
| Glowmoth timed session | Part of MacSuite | Yes, if Keep Display On is off | Yes | Doesn't block manual sleep; lid needs closed-lid mode |
Try Power Nap first
Apple says that on a power adapter, Power Nap can also run Time Machine backups and download software updates. If your Mac supports it, it is on by default when plugged in.
- Plug the Mac into the power adapter.
- On a laptop, open System Settings > Battery, click Options, and check Enable Power Nap. Apple's path is Battery in the sidebar, then Options.
- On a desktop, open System Settings > Energy and check the same setting. Apple notes this option is available only on Intel-based Macs.
If you don't see the setting, or the backup still stalls with it on, hold the Mac awake with one of the methods below. Apple's page is Turn Power Nap on or off on Mac.
Keep the Mac awake during the backup
The goal is to block idle system sleep while letting the display sleep.
With Glowmoth
Glowmoth is a menu bar app that blocks idle sleep for a set time, until a clock time, or indefinitely. Its sessions keep the display on by default, so turn that off for this job.
- Plug in the Mac and start the backup.
- Right-click (or Control-click) the moth icon in the menu bar.
- Click Keep Display On so its checkmark disappears.
- Choose a duration from the same menu, such as 8 Hours. You can also choose Custom… and type
6h, or use Until for a clock time. - Open the panel (left-click the icon, or Option-click) and check that the header says "Awake" with the end time and time left.
Not sure how long the backup will take? Start Indefinitely. The panel then offers Stop In chips (15m, 30m and 1h by default) that turn it into a timed session ending that long from now. On a timed session, Add Time chips (+15m, +1h) extend it. Glowmoth also posts a notification 5 minutes before a timed session ends, with +30 Min and +1 Hour buttons. That notification is on by default and needs notification permission.
To make display-off the default for new sessions, open Settings… (⌘,), go to Sessions, and turn off Keep the display on under Display.
Keep the Mac plugged in. By default Glowmoth pauses all holds below 20% battery (only while on battery) and when macOS reports the Mac running hot, and a paused session lets the Mac sleep.
With Terminal and caffeinate
macOS includes caffeinate. This keeps the Mac from idle-sleeping for 6 hours (21,600 seconds) and leaves the display free to sleep:
caffeinate -i -t 21600-i prevents idle system sleep and -t sets the time in seconds. Press Control-C to stop early; closing the Terminal window also ends it. Nothing on your Mac changes, so there is nothing to undo. More flags are in caffeinate Command on Mac.
With the Glowmoth command-line tool
If you've installed the tool (Settings > Advanced > Command Line > Install):
glowmoth for 6h --no-displayThis starts a 6-hour session without keeping the display on. Run glowmoth off to end it. If the shell can't find glowmoth, add ~/.local/bin to your PATH.
Other keep-awake apps
Amphetamine is free on the Mac App Store as of November 2026 and may be all you need for the Mac side. We haven't compared its display and timer options here, so check its settings for display-sleep behavior.
Check that the Mac is staying awake
This command only reads information and lists what is blocking sleep:
pmset -g assertionsA Glowmoth session appears as a line like "Glowmoth: Session for 8 hours". In Glowmoth's panel, Show More has an "Also Keeping This Mac Awake" list of other apps holding the Mac awake, plus traps such as a scheduled sleep or automatic log-out.
Keep external drives from spinning down
If the Mac itself sleeps, the drive usually goes with it, so fix that first. If the drive still spins down while the Mac is awake, Glowmoth can write to it regularly so it counts as in use.
- Open Settings… (⌘,) and go to Advanced.
- Under Drives, turn on Keep drives from sleeping. It is off by default.
- Click Add Drive… and pick any folder on the external or network drive.
- Set When. While Keeping Awake (the default) writes only during a Glowmoth session. Always writes whether or not a session is running.
- Set Every N min (1 to 30, default 4).
Every few minutes Glowmoth writes a tiny hidden file named .glowmoth-keepalive at the root of each chosen drive, flushes it and reads it back. It deletes the file when you turn the feature off or remove the drive. It never mounts a drive, skips read-only and unmounted ones (the list shows "Read-only, skipped" or "Not connected"), and rejects your startup disk. macOS may ask for permission the first time for removable or network volumes.
This does not stop a drive from ejecting when the Mac itself sleeps, and nothing is written while the Mac is asleep. In an older SoftRAID forum thread about a drive ejecting at sleep, one person reported that Amphetamine made no difference, so test with your own setup. OWC's knowledge base recommends Amphetamine or Caffeine for keeping drives active. If a drive disconnects while the Mac stays awake, check the cable, port or hub, and the enclosure's own power management.
Checklist before you try again
- The Mac is on the power adapter.
- A session is running and the panel says "Awake" (or
pmset -g assertionsshows it). - Keep Display On is off if you want the screen dark.
- The lid is open, or closed-lid mode is set up.
- The session is longer than the backup. Check the Time Machine menu for progress.
- When a Session Ends is not set to sleep the Mac early.
If it still doesn't work
- The lid is closed. Closed-lid mode can override that on laptops; see Keep a MacBook awake with the lid closed. It is off by default, needs a helper approved in System Settings > General > Login Items, and only works while a session is running.
- You chose Sleep from the Apple menu or pressed the power button. Glowmoth blocks idle sleep only, not manual sleep.
- The panel says "Paused". A safety limit released everything. Plug in, or use Resume Anyway (30 min).
- The panel says "Your trial has ended." Without a valid license nothing is kept awake. Use Enter License….
- The icon is missing. A full menu bar or the notch can hide it. See menu bar icons hidden behind the notch.
- The backup is slow, not stopped. Apple notes the first backup might take longer than you expect, but you can keep using your Mac during it. See Apple's Time Machine guide.
If the backup fails with the Mac awake, contact Apple Support or the drive maker. Include the macOS version, the drive model and connection, and what the Time Machine menu shows.
Hi, my Time Machine backup stops partway through. The Mac stays awake
(pmset -g assertions shows the hold), but the backup disk [disconnects /
spins down / shows an error]. macOS version: [version]. Drive: [model and
connection]. Steps tried: Power Nap, keep-awake session, different cable
and port. Time and exact message: [details].Common questions
Does the display sleeping stop the backup?
No. Display sleep is separate from system sleep. A session with Keep Display On turned off blocks only idle system sleep.
How long can a timed Glowmoth session last?
Up to 7 days. For longer, use Indefinitely and stop it yourself.
Should I leave the session running after the backup?
No. End it with Stop in the menu, or let a timed session run out, so the Mac can sleep normally again.
Can Glowmoth keep a drive from ejecting when the Mac sleeps?
No. It only writes to drives while the Mac is awake. For a Mac that sleeps at other times too, see Mac Keeps Going to Sleep: Causes and Fixes.
Glowmoth is part of MacSuite, and each app can be tried free for 7 days. See the Glowmoth page or Keep your Mac awake for a time, until a time, or indefinitely.