Last active
June 16, 2023 11:48
-
-
Save andrewp-as-is/b0038a4e0a23533ab9dc2f1526fffab5 to your computer and use it in GitHub Desktop.
macOS Time Machine speed up #macos #sysctl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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