Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- echo "Hello, $USER. So you want to backup your phone, eh?"
- echo -n "Please enter your iPhone's IP address:"
- read phoneip
- echo -n "Please enter your rootpass:"
- read -s rootpass
- echo
- if [ -d ~/Desktop/iphoneBackup ]
- then
- echo "Backup folder already exists, files will be placed in current backup folder"
- else
- mkdir ~/Desktop/iphoneBackup
- fi
- echo -n "Hit enter to begin."
- read
- scp -r root@$phoneip:/Applications/ ~/Desktop/iphoneBackup
- expect "password:"
- send $rootpass
Add Comment
Please, Sign In to add comment