Skip to content

Instantly share code, notes, and snippets.

@jodell
Created July 27, 2011 15:15
Show Gist options
  • Select an option

  • Save jodell/1109588 to your computer and use it in GitHub Desktop.

Select an option

Save jodell/1109588 to your computer and use it in GitHub Desktop.
toggle itunes backups
#!/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