Livia Stroie
Publié par Livia Stroie,

This article was updated in September 2016

How to handle a corrupt iPhone or iPad backup from a failed iOS upgrade

Every now and then, when creating an iTunes backup, it can turn out to be corrupt, sometimes without you realising it until you need to restore. This can be a real problem for Apple fans and invariably it happened to many of us at some point.

Maybe you lost data from your iPhone after a failed iOS upgrade, or maybe a precious backup has been overwritten. Maybe you are simply trying to restore data from a previous iTunes backup which iTunes refuses to restore.

Corrupted iTunes backup

iPhone backup is corrupt: Common iTunes error

Error messages shown in iTunes for a corrupt backup can vary depending on the main issue, sometimes without giving us any clues on the real problem. Here are some of the most common messages:

  • The iPad could not be restored. An unknown error occurred
  • iTunes could not restore the iPhone because the backup session failed
  • iTunes could not restore the iPhone because the backup was corrupt or not compatible with the iPhone that is being restored

Can I repair an iPad/iPhone corrupt backup file?

In most instances, it’s almost impossible to repair corrupt backups, and certainly not without a full understanding of what is missing and how to fix it. The next best option is the recovery of data and files that still exist, by simply using the free version of the iPhone Backup Extractor that can show you what data is in a backup.

Corrupt iTunes backups can be affected in different grades depending on what has happened. For example, an iOS upgrade or a power failure can determine different levels of data corruption. If the backup process is not complete the result will be an unusable iTunes backup file. Depending on how far iTunes was in completing its task, the data can be recovered or not.

If you don’t have experience with the iTunes backups, it’s very difficult to determine whether a backup has all the data and files.

If you are in this situation, we recommend you to contact our expert team, they are ready to help and explain exactly what is possible.

Below you’ll find a few ways to recover data from a corrupted iTunes backup, depending on the file type.

Do you need to get back iPhone data?

Data such as contacts, calendars, SMS messages, location, notes is stored in sqlite databases named as specific iTunes hash files within the backup folder.

Our application can convert these databases to user-friendly CSV, Vcard or HTML format for your convenience. Here are the steps to follow if your backup is corrupt and you need the data inside:

  1. Try the quick links for data extraction from “Overview” – this is the simplest way to extract your data
  2. Use the "File" Menu to convert files to the format you need (CSV, VCards, ICAL for calendar or HTML for notes or messages)
  3. Convert database iPhone Backup Extractor
  4. Use the "Extract" Menu to extract the files you need (contacts, calendar, SMS, notes, etc.)
  5. Extract data as vCard file
  6. Use "Expert Mode" of the application to extract the SQLite databases and work with them directly if possible
  7. Expert mode

How to recover iPhone photos and videos

You may still find photos and videos in your iTunes backup even if the iTunes process was incomplete and led to a corrupt backup file. Usually the size of the backup folder itself is the tell-tale sign: a backup folder of 1-2 GB or more might mean that some photos and videos may still be inside. Try the following:

  1. Extract photos and videos by the quick links in the iPhone Backup Extractor
  2. Use the "Extract" menu to extract photos or videos
  3. Enter "Expert Mode" of the application and navigate to Camera Roll Domain > Media > PhotoData, Camera Roll Domain > Media > DCIM, Media Domain > Library > SMS > Attachments or Media Domain > Media > Recordings to see if there are still media files you can recover.

If you still have problems and you’re unable to extract the images or you videos, you can follow the instructions below:

  1. Find the backup folder in question and make a copy of it. Make sure that the selected folder is a copy because you’ll destroy it in the end.
  2. Sort the files inside by size and remove all files smaller than 300 KB.
  3. Download the Bulk Rename Utility. It is a free tool and a great help for what we want to do.
  4. Once the software installed, open the "Bulk Rename Utility" and navigate to the copy of the backup folder you made, then select it. If you need to extract the images from the backup, add "jpg" (without dot) to the "Extension Section (11)" or “.jpg” (with dot) using the "Add > Suffix (7)" menu.
  5. Select all the the files in the top window (they’ll appear in green). Click the “Rename” button and all the selected files will then be converted to "jpg" files.
  6. Bulk Rename Utility
  7. In the folder where you saved them, select "Thumbnails view". Now you should be able to see which files are photos. Move the photos to a safe new folder, then repeat the process for videos by using the ".MOV" extension instead of ".jpg".

How to recover iPhone app messages

The iTunes backup file can contain WhatsApp / Snapchat / Viber / Kik / WeChat / Line and Hike databases as well. If you have installed these apps on your iPhone and you want to recover your messages, the iPhone Backup Extractor can help you to extract them, if data can be recovered.

Try these methods for extracting your iPhone app messages:

  1. Check the “Preview” tab to see if any data is available for extraction. If data is there, you should click on the app name, select the messages you need and download them in the format you want.
  2. Preview app
  3. Use the “Extract” menu to export the available messages as HTML or as CSV. The difference between these formats consists in the way that the data is displayed. If you need to extract it into an easy readable format, the HTML version is what you need. The extracted file can be opened with any browser and you will get the attachment files, too. If you want to extract the data in text format, then the CSV format is what you need. Basically you will obtain a list with the messages extracted in a text format, readable with any plain text reader. If you extract the database content in this format, you will not be able to get the messages attachments.
  4. Extract Kik messages
  5. Use the “Expert mode” tab then choose the database you want to recover. After extraction use the “File” menu then select the databases you have and convert them to the format that you need (CSV, HTML).
  6. Kik sqlite database extraction

Use the table below to extract the necessary data from the correct path.

Chat AppStored toBackup filename

WhatsApp
Application Domains/net.whatsapp.WhatsApp
/Documents/ChatStorage.sqlite
1b6b187a1b60b9ae8b720c79e2c67f472bab09c0;
275ee4a160b7a7d60825a46b0d3ff0dcdb2fbc9d;
7c7fba66680ef796b916b067077cc246adacf01d;

Snapchat
Application Domains/com.toyopagroup.picaboo/
Documents/chats.plist (private messages) or stories.plist (public snaps)
1cd3cd2b412f7b045dd479b617cb2a4f99ffdfee (private messages);
7cdb9af6c5352b97cc0f87369df43c49a45c99f3 (public snaps);
KikApplication Domains/group.com.kik.chat/cores/private/……/kik.sqlite8e281be6657d4523710d96341b6f86ba89b56df7;
ViberApplication Domains/com.viber/Documents/Contacts.datab39bac0d347adfaf172527f97c3a5fa3df726a3a;
WeChatApplication Domains/com.tencent.xin/Documents!/DB/MM.sqliteThe hash file changes from user to user and it`s different each time

These databases can be used in the following ways:

  • Can be imported into another iTunes backup. To import them into another iTunes backup, you should use the iPhone Backup Extractor in “Expert mode”. Once here, go to the path where you need to import the file, right click on the element you need to be imported, select “Replace file” and choose the database you want to import. Remember that the database from the iTunes backup will be replaced by the new database, so the data from the backup will be deleted
  • Can be converted into CSV or HTML (you can use the iPhone Backup Extractor then the “File” menu to convert the database into the format you want)
  • Can be opened with an SQL editor (like SQL Manager, for example)

What are manifest files and why do I need them?

The manifest files in the iOS are best described in layman’s terms as a directory that lets the iOS, iTunes and our application know what files are in the iTunes backup, their name and where they are located.

The manifests also contain important information about keychains and encryption, so if they are corrupted or deleted it can cause iTunes huge problems when restoring the backup. The main manifest and info files are:

  • Info.plist
  • Manifest.mbdb
  • Manifest.plist
  • Status.plist

If you get an error message saying "There is no iTunes backup stored" or the backup shows as incomplete and gives no stats, this means that the manifest files are partly corrupted or even missing. If these files are corrupted or missing, the backup cannot be restored via iTunes. In this situation the iPhone Backup Extractor could "miss-report" the iTunes backup contents.

Encrypted backups are even more difficult to work with when corrupt, as missing or damaged manifest files make the backup unusable.

Can I avoid iTunes corrupting my iOS backup?

Given the many ways through which an iTunes backup can become corrupt, it is difficult to prevent all instances of iTunes failure. However, there are best practices to follow to avoid losing precious photos or important contacts and also protect data already safely backed up in iTunes. When carrying out major iTunes process like iOS updates or full backups, we suggest backing up safely to prevent data loss.

  • Always make a copy of the iTunes backup before an iOS update
  • Store the safety copy on another location on your computer, other that the default iTunes folder
  • Do not disconnect the device while iTunes is making a backup

If your backup has been corrupted, tell us more below. Missing manifest files is a case for our support team, so contact us!

We've helped over 3,000,000
people recover their lost iPhone data.
Let us help you too.

DOWNLOAD THE FREE VERSION »
Windows

v7.4.1.1469 - 8th Déc, 2016

OS X

v7.4.1.1469 - 8th Déc, 2016

Works with Windows and Mac