Skip to content

Instantly share code, notes, and snippets.

@andrewp-as-is
Last active June 16, 2023 11:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewp-as-is/b0038a4e0a23533ab9dc2f1526fffab5 to your computer and use it in GitHub Desktop.
Save andrewp-as-is/b0038a4e0a23533ab9dc2f1526fffab5 to your computer and use it in GitHub Desktop.
macOS Time Machine speed up #macos #sysctl
#!/usr/bin/env bash
# speed up Time Machine backup, Mac App Store install, etc
sudo /usr/sbin/sysctl debug.lowpri_throttle_enabled=0
# restore defaults
sudo /usr/sbin/sysctl debug.lowpri_throttle_enabled=1
# check:
sysctl debug.lowpri_throttle_enabled
# Time Machine status:
tmutil status
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>time-machine-speed-up</string>
<key>ProgramArguments</key>
<array>
<string>bash</string>
<string>-c</string>
<string>tmutil status | grep Running | grep -q 1 && /usr/sbin/sysctl debug.lowpri_throttle_enabled=0 || /usr/sbin/sysctl debug.lowpri_throttle_enabled=1</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartInterval</key>
<integer>30</integer>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment