Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Shell script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Shell script
Authored by: luigi193 on Aug 09, '08 04:55:59PM
I wrote a basic shell script to make a CLI for the commands, so you don't have to remember them.. put it in /usr/bin and make sure to make it executable...

#!/bin/sh

echo "Enable or Disable Backups (e , d or quit)"

backup () {
	read CHOICE
	case $CHOICE in

		e|E)
			defaults write com.apple.itunes DeviceBackupsDisabled -bool NO
			echo "Backups Enabled"
			exit 0 
			;;
		d|D)
			defaults write com.apple.itunes DeviceBackupsDisabled -bool YES
			echo "Backups Disabled"
			exit 0
			;;
		quit)
			exit 0
			;;
		*)
			echo "Please only enter: e, d, or quit"
		backup
		;;
	esac
}

backup



[ Reply to This | # ]