|
Fast, clean and reliable iPhone backups
August 31, 2008 06:24 PM
As iPhone users know, iTunes’ backup facility is sketchy at best; It can corrupt backups, it can be ridiculously slow, and on a personal note; I don’t like the idea of “trace files” creeping into a newly restored device. So I’ve decided to outline a “workflow” I personally use whenever I’m up for a restore session. Everything here assumes a jailbroken device of course. How it was beforeOn a 2.x device, the way you could get your AppStore apps’ settings restored was by using iTunes’ backup images - buggy as it is. There’s also the issue of bugs during normal usage; there have been cases of legitimate apps randomly crashing - and the only “cure” was to erase the app and reinstall it. This would’ve been fine, only they forgot to mention that when you erase/uninstall an app, that’s exactly what you’ve done - along with all its data. That same nuance applies to jailbroken apps as well; doubly so, since there practically isn’t any automated way of doing it. With official AppStore apps, at least you can try your luck and use iTunes’ crappy method. On the jailbroken side you literally have to Thankfully in my case, this pain in the tooschie isn’t as pronounced. Ever since the AppStore, the jailbroken apps I use through Cydia are limited to system administration and such; most of them are of the generic (“switch on/off” type) persuasion - so they require minimal or no “configuration.” That eliminated the whole need for backing up settings; which only leaves us the “manual installation” part to deal with. Pwnage ToolThankfully, there’s a program out there that allows you to build a custom AppBackupThis is a jailbroken app that can backup/restore AppStore app settings into one folder. For those who’ve ever tried backing up such apps manually, I’m sure you’ve seen what these apps’ folders look like: AppBackup makes short work of that and does all the searching for you; then dumps all the backups into a single folder. Putting it all togetherGiven the stuff (and caveats) at our disposal; here’s an ideal flow of tasks we need for a clean restore… ending up with restored application settings. To avoid confusion, I’ll call Apple’s (iTunes) restore process “reformatting” and “restoring” is the actual restoration of [user] data.
The only caveat here is that you lose your Global Settings3 and some data from the default Apple applications (Clock, SMS, Weather, etc). Also, interestingly enough, it doesn’t provide backing up of jailbroken app settings4 Hopefully the author of AppBackup would include provisions for those in the next version. The ProcessNow lets get to the meat of the matter. What exactly do I do when I undertake a reformatting session… Preliminaries: Have everything you need readyNothing sucks more than finding out in the middle of a reformat that you’ve missed something that can make you lose your data. Personally, I check for these before going through reformatting.
Building an IPSW via PwnageToolAs of this posting, for my purposes, here’s the skinny on what packages I need pre-installed on my phone. I won’t bother getting into detail about the nuances of Pwnage Tool or Cydia, but sufficed to say I’ll just assume you know how the fundamentals of each. The packages in red are the absolute minimum required for Cydia to run. These are installed whether you include them or not when building your The light red ones I believe are also installed by default; I still marked them differently because you can delete them if you’re really anal about diskspace. I strongly suggest you leave them there however; they only amount to about 9MB anyways - hardly a show stopper for a multi-GB device. The gray packages are optional, but what I personally install for whatever useful reason I have (e.g. openSSH - which you’ll be needing at some point) Lastly, the packages in blue, just like those in gray, aren’t needed for Cydia to run, but they are needed for AppBackup to run, so make sure you include them as well.
Aside from the default Telesphoreo source, here are the other repositories/sources I also include in my Cydia install (as of 08.08.31):
Step 1: Backup via AppBackupSimple enough, launch AppBackup, and backup everything. Step 2: Transfer backup files to desktopAccess the device via Step 3: Restore device with your custom .ipswYou did all the preliminaries right? So you should still be able to follow at this point. Step 4: Setup your device as a new device and configure the other areasRemember, we don’t want the “file clutter” that may be present in an iTunes backup, so don’t restore via an iTunes backup image. Just start from scratch. If you synced the device like I told you in the preliminaries, it should be a matter of just checking boxes here and there and selecting that using that special area in the “info” tab to force iTunes into overwriting your device with (hopefully up to date) data from the calendar, contacts, etc. You also want to start installing the AppStore applications you want through the “Applications” tab. Do a sync and continue to step 5 Step 5: Restore AppStore dataJust do the reverse of steps 1 and 2; access the phone via At this point, I’d suggest you run AppBackup first and do a backup just so it initializes everything properly (and so you can see if it works properly before putting back the data) If everything is in order, exit AppBackup (restart the phone just to be on the safe side) then access the device via Overwrite the You’re done!The next time you launch any of your AppStore apps, you shouldn’t have to reconfigure them anymore. Some people (myself included) experience the “password” bug after a jailbroken reformat (usually triggered by the EDGE toggle in BossPrefs) The symptom of the bug is that you can never get mail because the authentication fails, and you can’t log-on to a network. You can fix that by accessing the device and setting the permissions on the following folders:
I just suggest you do all this before you try/use the EDGE toggle just to be on the safe side.
post updated on September 15, 2008 @ 09:55AM |
