Created
July 27, 2011 15:15
-
-
Save jodell/1109588 to your computer and use it in GitHub Desktop.
toggle itunes backups
This file contains hidden or 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 ruby | |
| # http://hboon.com/speeding-up-itunes-iphone-synchronization/ | |
| # defaults write com.apple.iTunes DeviceBackupsDisabled -bool true | |
| # To re-enable backup: | |
| # defaults write com.apple.iTunes DeviceBackupsDisabled -bool false | |
| case ARGV[0] | |
| when /on|true|1/i | |
| `defaults write com.apple.iTunes DeviceBackupsDisabled -bool true` | |
| puts "CAUTION: Disabling iTunes Backups!" | |
| when /off|false|0/i | |
| `defaults write com.apple.iTunes DeviceBackupsDisabled -bool false` | |
| puts "INFO: Enabling iTunes Backups!" | |
| else | |
| puts "Expected true/false, on/off, or 1/0" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment