Backup iphone con linux, ssh y bash

Esta copia de todos los datos del iphone v.2.2.1 3g, con jailbreak.

# iphonebackup.sh
#Por Paco Aldarias.
#Version 1.0
#18.6.09

f=»
Notas:/private/var/mobile/Library/Notes/notes.db
SMS:/private/var/mobile/Library/SMS/sms.db
Safari-Bookmarks:/private/var/mobile/Library/Safari/Bookmarks.plist
Call-History:/private/var/mobile/Library/CallHistory/call_history.db
Maps-Direcciones:/private/var/mobile/Library/Maps/Directions.plist
Direcciones:/private/var/mobile/Library/AddressBook/AddressBook.sqlitedb
Direcciones-Imagenes:/private/var/mobile/Library/AddressBook/AddressBookImages.sqlitedb
Maps-Bookmarks:/private/var/mobile/Library/Maps/Bookmarks.plist
Calendario:/private/var/mobile/Library/Calendar/Calendar.sqlitedb
Camera-roll:/private/var/mobile/Media/DCIM/100APPLE
«

for i in $(echo $f);do
titulo=$(echo $i | cut -d «:» -f1)
fichero=$(echo «$i» | cut -d «:» -f2)
orden=$(scp -r root@iphone:»$fichero» /media/sda6/iphone/backup/)
echo «Copiando: $titulo $fichero: $orden»
$orden
done