This blog details on how to recover iPhone/iPad contacts from iTunes backup. As we all know, Apple has iCloud to back up your contacts & recover when you need them. But for some reason my all iCloud contacts are lost & i left with no contacts.
However my iPhone was backed up to my computer long back before iCloud arrived & there the adventure to recover contacts began. There are some commercial software products in the market which can help you to recover but it comes at steep price of USD25. If you are interested to buy, can access following link (I haven’t used it & buy at your own risk). Before buying you can see how many contacts, notes, photos can be recovered etc.
http://www.iphonebackupextractor.com/
Being a software professional, i felt spending $25 would not be worth in recovering contacts. So i went about googling in trying to find the way to get contacts. After many hours, i finally found way to recover. The process is detailed below & i am assuming you have minimum knowledge to use computer like opening files, unzip files etc.
Tools Required (Free ):
This is mainly to identify the AddressBook/contacts file from numerous files (hashed file names).
This is to extract contact data from AddressBook file.
Both tools are in zipped version & need either winzip or winRAR for unzipping.
Step 1: Identify Correct Back Up & Address Book file with in the Backup.
Open “iphonebackupbrowser.exe” from unzipped folder of iphonebackupbrowser. Tool automatically selects the valid iTunes backup’s & identify the Backup from which you need to recover contacts. If the system could not identify, you can select backup from following location in Windows Vista or later OS.
C:\Users\<username>\AppData\Roaming\Apple Computer\MobileSync\Backup (Substitute your own username)
Once Backup is selected, tool automatically populates with all file names. Go to “System” in top window & it will populate all files located in “System” in bottom window (See below picture). In bottom window, sort by names (by clicking on Names). With in that identify the contacts file with name “AddressBook.sqlitedb” .
Click on the file & browser points to the original file name in the Backup location. The file usually starts with 31bb… Copy the file to some private location so that our recovery process don’t accidentally alter the file. Although we can use file without copying to private location(for example Desktop), it is strongly recommended to avoid potential damage due to ours/tools mistakes.
Step 2: Recover contacts from AddressBook file
Open SQLiteSpy & open AddressBook file (starting with 31bb) in SQLiteSpy.
It populates various tables found from the file. Identify table with name “ABPersonFullTextSearch_content” (see below picuture). Right click on table & click on “Show Data”. It opens new window with all your contact details. There are your contacts & finally you recovered your contacts. Unfortunately SQLiteSpy doesn’t allow to export in to a txt or CSV file (as far i know) & you need to manually search for required contact & identify numbers. This is the small price you need to pay for free service :).
The phone numbers can be found in column 15 (c15) where as Last & First names are in c1 & c2 columns. If you don’t have different numbers for Mobile & iPhone numbers, same will get populated twice (I even saw some numbers got repeated 5 times).
Hope this helps. Let me know if you hit any issues through comments below. I will try to respond to best of my ability.