6.19.2009

iPhone Backup information/note

Folder location


~/Library/Application Support/MobileSync/BackupFile

  • Info.plist

  • Each device's Info.plist file is created by iTunes. It stores your iTunes preferences for that unit along with basic device information.

  • Manifest.plist

  • The Manifest.plist file is created by the iPhone backup utility on your computer. It uses this manifest to check files for corruption and (inadvertently, I'm sure) prevent any data changes on the Mac side from being sent back to the iPhone.

  • .mdbackup files

  • the mdbackup files are created by the iPhone backup utility. If you delete any of these files, they're re-created the next time you sync and back up.

  • /System/Library/PrivateFrameworks/MobileDevice.framework/ Resources/AppleMobileDeviceHelper.app/Contents/Resources/AppleMobileBackup

  • command for manually force a sync or a backup; ambackup is a symbolic link for the command

    ./ambackup --backup --target targetid

    The device immediately backs up to disk. This goes surprisingly fast, even when you've deleted or moved the backup folder. So don't expect it to take a long time.

    In order to restore a device, you run the AppleMobileBackup program using the restore switch, like this:

    ./ambackup --restore --target targetid

    This throws your iPhone into restore mode and returns any uncorrupted files from the backup folder to your device. This takes quite a bit longer than the backup, so prepare to wait a few minutes for it to complete.

    If you want to restore your phone from a folder that is different from the target ID normally used, supply a source folder name as follows:

    ./ambackup --restore --target targetid --source sourcefoldername



Read mdbackup files in Cocoa


mdbackup files are property lists and are created in a compressed binary format. These files are just as readable from your Foundation Cocoa programs as any other property list. The key to recovering data lies in de-serializing the data stored in that property list dictionary.

Read mdbackup property lists into your program just as you would read any other plist
[NSDictionary dictionaryWithContentsOfFile:mdbackupath];

This call creates a new NSDictionary object and initializes with the contents of the property list (or in this case mdbackup) file.

Once loaded, you may access the file data from the dictionary. Request the object associated with the @"Data" key
NSData *data = [mdbackupDict objectForKey:@"Data"];

Store that data out to disk
[data writeToFile:outfile atomically:YES];


The name of the file is stored in the @"Path" key. Use this value to restore the data to a file with the same name.

Create subset backup files



You can easily strip a manifest of its extraneous applications and files and re-embed that stripped manifest into the Manifest.plist file and restore just that subset. Here are the steps:


  1. Create a new working directory in ~/Library/Application Support/MobileSync/Backups.

  2. Copy the Manifest.plist file and the mdbackups you want to restore into the working directory.

  3. Read in the @"Data" item from Manifest.plist and deserialize it to a dictionary. Remove all the items in the @"Applications" subdictionary and everything but the specific mdbackup files you want to use from the @"Files" subdictionary.

  4. Reserialize the updated dictionary, add it back into the Manifest @"Data" and sign the reserialzed data with SHA1.

  5. Perform a restore using --source as the working directory. Only the selected files will transfer to the iPhone.



Sample Code:

// Read in the file to embed
NSMutableString *embedFile = [NSMutableString stringWithCString:argv[1] encoding:1];
if (![[NSFileManager defaultManager] fileExistsAtPath:embedFile])
{
fprintf(stderr, "File %s does not exist\n", argv[1]);
exit(-1);
}
NSData *pdata = [NSData dataWithContentsOfFile:embedFile];

// Read in the mdbackup file
NSMutableString *mfile = [NSMutableString stringWithCString:argv[2] encoding:1];
if (![[NSFileManager defaultManager] fileExistsAtPath:mfile])
{
fprintf(stderr, "File %s does not exist\n", argv[2]);
exit(-1);
}
NSMutableDictionary *plist = [NSMutableDictionary dictionaryWithContentsOfFile:mfile];

// Add the embedded file
[plist setObject:pdata forKey:@"Data"];

// Serialize the output
NSString *errorString;
// NSPropertyListXMLFormat_v1_0
NSData *outData = [NSPropertyListSerialization dataFromPropertyList:plist format:NSPropertyListBinaryFormat_v1_0 errorDescription:&errorString];
[outData writeToFile:[@"out-" stringByAppendingString:mfile] atomically:NO];


Tools


Erica Sadun's utility to examine and extract backup files
a command-line Mac-based application that scans through backup folders and extracts files. For example, to recover all the png images from your backups, you could issue mdhelper -C png. Run the utility without arguments to see the built-in options.

What mdhelper does is this. It locates all backup folders. It reads in the Info.plist and Manifest.plist files and it lets you extract manifests and files based on a variety of search options. It stores extracted data on your desktop in a recovered iPhone files folder.

iPhone/iPod Touch Backup Extractor
This application converts the iPhone / iPod Touch backups that are created by iTunes into readily usable Mac OS X files. It is designed to run on Mac OS X Leopard only. The current version works with iTunes 8.2 and iPhone OS 3.0 or lower.


References


Inside iPhone Blog: iPhone Backups series

25 comments:

Unknown said...

I start to learn "iPhone backup" few days ago because i lost my iPhone data and was told that i can recover then from iPhone backup. Here are the trick i can learn about how to recover iPhone data from backup:

* recover iPhone photos from backup
* recover iPhone contacts from backup
* restore iPhone data from backup

Anonymous said...

You can try this iPhone Backup Recovery software which will basically extract data out of your iPhone's backup and dump it onto your computer.
http://www.recovery-android.com/extract-iphone-backup-data.html

Unknown said...

Hello my loved one! I wish to say that this post is awesome, great written and include almost all significant infos. I'd like to peer extra posts like this.
The iPhone/iPod Touch Backup Extractor is a good tool.

Unknown said...

command for manually force a sync or a backup; ambackup is a symbolic link for the command

./ambackup --backup --target targetid

its working fine but i want to know similar command for change/ remove backup password for itunes backup or how can i get a decrypted backup when setting in itunes for encrypted backup . i have password .

Unknown said...
This comment has been removed by the author.
Unknown said...

or how can we clear password form itues backup process by command

Ali Khan said...





Pretty great post. I simply stumbled upon your blog and wanted to mention that I have really loved surfing around your blog posts. Great set of tips from the master himself. Excellent ideas. Thanks for Awesome tips Keep it
iphone-backup-extractor-crack
ashampoo-driver-updater-crack
rivermax-pro-crack
lightworks-pro-crack
avira-antivirus-pro-crack
parallels-desktop-crack

kickasscrack said...

This site have particular software articles which emits an impression of being a significant and significant for you individual, able software installation.This is the spot you can get helps for any software installation, usage and cracked.
kickasscrack.com
phpstorm-crack
iphone-backup-extractor-crack
ashampoo-driver-crack
tally-erp-9-crack-free-download
wondershare-filmora-x-crack-serial-key

Softwarew said...


Nice explanation and article. Continue to write articles like these, and visit my website at https://usacrack.info/ for more information.
iPhone Backup Extractor Crack
TeamViewer Pro Crack
Adguard Premium Crack
Smadav Pro Rev Crack

Cracked Software said...

Thanks for this Great sharing i like this post..and your site is amazing…i am a big fan of this site.
IObit Malware Fighter Pro
iPhone Backup Extractor
Aiseesoft Screen Recorder
Magic Browser Recovery

softwere said...

Nice explanation and article. Continue to write articles like these, and visit my website athttps://usacrack.info/ for more information.
Bootstrap Studio Crack
Autodesk AutoCAD Crack
TeamViewer Crack
Movavi Screen Recorder Crack
iPhone Backup Extractor Crack
Camera Bits Photo Mechanic Crack

Unknown said...

This site have particular software articles which emits an impression of being a significant and significant for you individual, able software installation.This is the spot you can get helps for any software installation, usage and cracked.
adguard-premium-crack
3delite-mp3-silence-cut-crack
iphone-backup-extractor
chrispc-screen-recorder-pro-crack
raxco-instantrescue-crack
systweak-advanced-driver-updater-crack
avs-video-converter-crack
minitab-crack-2

iCracker.net said...

I read this article! I hope you will continue to have such articles to share with everyone! thank you! You can Visit my website
https://icracker.net/https://icracker.net/

3delite mp3 silence cut crack

a4scandoc crack

ytd video downloader pro crack

wondershare pdfelement pro crack

a4scandoc crack

nordvpn crack

izotope vocalsynth crack

crackadvise said...

I enjoyed reading your articles. This is truly a great read for me
I have bookmarked it and I am looking forward to reading new articles. Keep up the good work. And Thanks For Sharing!

Ashampoo Backup Pro Crack
Free YouTube Download Crack
VideoProc Crack
Driver Magician Crack
Magic ISO Maker Crack

kickasscrack said...

This site have particular software articles which emits an impression of being a significant and significant for you individual, able software installation.This is the spot you can get helps for any software installation, usage and cracked.
kickasscrack.com
mirillis-actio-crack
phpstorm-crack
minecraft-pocket-edition-crack
restoro-crack/
mx-player-pro-crack
iphone-backup-extractor-crack

Muzamil bhutta said...

iPhone Backup Extractor 7.7.33.4833 Crack is an amazing data recovery software for Windows and macOS. It is a powerful software that can bring back all your lost iPhone dataiPhone Backup Extractor 7.7.33.4833 Crack + Keygen Download. https://getpcrack.com/iphone-backup-extractor-crack/

riva said...

Amazing blog! I really like the way you explained such information about this post with us. And blog is really helpful for us this website.

iPhone Backup Extractor crack
Navicat Premium crack

Unknown said...


I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot.I hope to have many more entries or so from you.
Very interesting blog.
xcrack.org
iPhone Backup Extractor Crack

Unknown said...

I thought this was a pretty interesting read when it comes to this topic. Thank you
iphone-backup-extractor-crack

Unknown said...





Such a Nice post. Thanks for Awesome tips Keep it up
iphone-backup-extractor-crack
nch-keyblaze-typing-tutor-plus-crack
https://thecrackfiles.com/blackmagic-fusion-crack/
teamviewer-crack
ashampoo-uninstaller-crack
lastpass-password-manager-crack
poweriso-crack
wise-care-crack
fxsound-crack
dll-files-fixer-crack
keynote-crack
ytd-video-downloader-pro-crack
dvdfab-crack
magix-movie-edit-pro-crack
4k-stogram-crack

Crackexe.net said...

I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years! but I had no idea of solving some basic issues. I do not know how to Crack Softwares Free Download But thankfully, I recently visited a website named https://icracker.net/
https://crackexe.net/

a4scandoc crack

drivereasy pro crack

pushvideo wallpaper crack

idm crack

spyhunter crack

mastercam crack

easeus todo pctrans pro crack

wondershare pdfelement pro crack

vsdc video editor pro crack

autodesk 3ds max crack

adobe acrobat pro dc crack
avg secure vpn crack
3delite mp3 silence cut crack
resolume arena crack
adobe acrobat pro dc crack
driver easy pro crack
disk drill pro crack

Christine Walter said...

Download Software for PC & Mac
You make it look very easy with your presentation, but I think this is important to Be something that I think I would never understand
It seems very complex and extremely broad to me. I look forward to your next post,
Mocha Pro Crack
BeeCut Crack
Blue-Cloner Crack
Sublime Text Crack
Video Copilot Element Crack
iPhone Backup Extractor Crack
Blumentals Rapid CSS Crack
Jihosoft File Recovery Crack

crack forever said...

If you want to download latest version of these Cracks Links are Here Below!
iPhone Backup Extractor Crack Free Download
Beyond Compare Crack Free Download
Hitman Pro Free Download
Corel PaintShop Pro Crack Free Download
Plotagon Crack Free Download

Axcrack87 said...

The great information is provided in the article. I like the information.
Visit my website for more information.
iPhone Backup Extractor Crack
DxO PhotoLab Crack
Ontrack EasyRecovery Crack
EaseUS Partition Master Crack
Bandicut Video Cutter Crack

softwarezpro.net said...

Nice Working.Keep it up.

Restoro Crack