Keep your Mac awake during long tasks
Categories:
A long synchronization, such as the first copy of a large folder or a slow network connection, can take hours. If your Mac goes to sleep during that time, the synchronization stops.
A running rsync process does not keep your Mac awake. Before you start a long task, make sure your Mac will not sleep until it has finished.
What happens if the Mac sleeps
- rsync is interrupted and usually stops with an error.
- RsyncUI does not log the run, because it only writes a log entry when rsync finishes.
- No data is corrupted. Run the task again when the Mac is awake: files that were already copied are skipped, so rsync continues with what is left.
How to keep the Mac awake
Choose one of these before you start a long task:
- For one task: open Terminal and runYour Mac will not go to sleep while the command runs. Press
caffeinate -iCtrl-Cin Terminal when the task has finished. - Permanently: in System Settings, open Battery → Options on a laptop, or Energy on a desktop Mac, and turn on Prevent automatic sleeping when the display is off (on a laptop, this applies on power adapter).
A laptop still sleeps when you close the lid, unless it is connected to power and an external display.
Stopping a task
You can abort a running task at any time. See Stopping a running task.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can can improve.
Sorry to hear that. Please tell us how we can can improve.