Configurations backup strategy before installing a new ROM

amir77a

Senior Member
May 1, 2004
446
6
0
I was wondering what is your backup/restore strategy when changing ROMs.

When I install a freshly cooked ROM, there are 3 stages for installation:

1. Installing the ROM itself which is obvious.
2. Install all personal cabs - with or without UC support.
3. Configure everything to work according to my personal configurations.

The most annoying part is the 3rd, since I have to go through each and every program, and run the process, of configuring all the options. This process always, takes me longer then installing everything.

Is there a way to backup/restore globally all settings?

Amir.
 

amir77a

Senior Member
May 1, 2004
446
6
0
I know that software. Doesn't it's OS migration option is risky?

I remember reading many bad opinions against using that option...

???
Amir.
 

KChauJen

Senior Member
Jan 24, 2004
398
9
0
I know that software. Doesn't it's OS migration option is risky?

I remember reading many bad opinions against using that option...

???
Amir.
I shouldn't agree more.

There's a lot of confliction and problematic after full restore the backup from the previous ROM to the new ROM.

It's my experiences.

KCJ
 
Last edited:

ugumba

Senior Member
May 18, 2007
427
57
0
Oslo
If you're willing to spend a bit of effort, you can have your device automatically configure 99.9% of what you want, as part of the customization occuring after flashing.

Look up SASHIMI, which should live on your SD card (or whatever you have which survives a hard reset). It basically install all the CABs, REGs and provisioning XMLs you want, plus runs any Mortscript, all in one big batch, according to certain sequencing rules. It can be configured to launch upon inserting the SD card, or as part of UC (User Customization), or to execute UC as part of itself, or run it manually. Most CABs which require manual intervention can be automated by using clever Mortscripts. The REGs and XMLs take care of configuring apps, games, serial numbers (legal, of course) or even network settings and Manila tweaks.

I now routinely flash a new ROM and leave my device for 30 minutes. I need to check in on it to tap past the WM setup dialogs. With that out of the way:
- all tools, apps and games CABs are installed, many with accompanying REGs for configuration
- WiFi is configured with my most used hotspots
- time is synchronized (assuming WiFi is available during this process)
- 3G is disabled (for better battery life), my data connection is configured but disabled (a la MoDaCo NoData)
- Pocket Outlook is setup with my Exchange account, an initial sync is performed (assuming WiFi is available), and additional mail folders are tagged for syncing
- PPCPimBackup restores my most recent backup of SMSes and call history (I've flashed or hard reset probably 20 times the last 2 months, and don't miss a single SMS/call since the day I bought the HD).
- My Start menu and programs list is neatly sorted into folders (of course this needs rework when I switch between ROM chefs)
- AEButton Plus is setup with my buttons the way I want them.
- SKScheMa is setup with the profile changes I want (GSM/WiFi off, silent and low brightness at night)

The only thing I really miss is to automatically provision a couple of Bluetooth pairings (a headset and 2 PCs). Apparently the encryption keys used for storing these pairings, is renewed on each hard reset. Typically, the first morning after a hard reset, while driving my car, my HD beeps every 1 minute as the car kit attempts to connect, and I'm usually unable to deal with it until I stop the car.

As you can imagine, there's quite a bit of initial manual labour, but I guarantee you that it's worth it.

I recommend that you get the following: Resco Explorer (w/registry addon), Orneta Notepad (or MobilePad). With these, most of the work can be carried out on the phone itself. To figure out the registry settings for a certain program or option, there are two ways:
- manual search, typically fast and has a very high success rate by first visiting HKLM\Software and HKCU\Software, then looking for the vendor or software name.
- registry diff, slow but very accurate, requires PC (for now). Export HKLM+HKCU (using multiple select in Resco regedit) *before* you make the configuration change, and *after* you've made the change. Copy the two reg files to a PC and do a diff (WinMerge should do a good job). Alternatively, you can use a Windows tool like Registry Workshop or CeRegEditor to export the registries, but I think the first way is faster, and you can actually prepare the exports on the move, then do the diffs when you come home.

Some programs store configuration data in files - these *may* be a bit harder to figure out, but they're usually in the installation folder. Once you've set up such a program to your liking, copy its CAB to SASHIMI\Auto\CAB and the configuration file to SASHIMI\Auto\Root\Program Files\<app name>, and the app will be as you want it after the hard reset.

SASHIMI can also back up such files for you, just put the paths into filebackup.ini. Similarly regbackup.ini can perform registry backups that will be automatically restored after a hard reset. You need to run or schedule this backup yourself, though, but both can be performed with one shortcut to SASHIMI.

I'm sorry for making this so long - I'll stop now, and hope this post provides a bit of inspiration to others. I can also help with certain aspects of UC - I'd love to post my custom tools and scripts, they're just not prepared for public consumption yet.
 
Last edited:

amir77a

Senior Member
May 1, 2004
446
6
0
intersting idea.

I tried Sashimi before, but I gave up due to prior needed investment.

I'll might adopt that idea, which seems to be very useful.

Amir.
 

ugumba

Senior Member
May 18, 2007
427
57
0
Oslo
Sashimi can basically accomplish the same as UC/SDConfig.txt - it just provides a simple UI and conventions that makes setting it up so much easier. I did play with SDConfig.txt (and various tools to automate/ease its maintainability), but quickly found maintaining the file very time consuming and error prone, and practically impossible without using a PC. Sashimi you simply copy to your SD card, and you can run it right away (it won't do anything). Next step is to copy a CAB to Auto\CAB, then run Sashimi, and the CAB will be installed.

Ah well, I hope it proves useful to others!
 

babak

Senior Member
Oct 21, 2005
1,019
61
48
italy
I know that software. Doesn't it's OS migration option is risky?

I remember reading many bad opinions against using that option...

???
Amir.
I use it without any problem and flash my hd every day :D should use it correctly :
Overall performance of backups and restores are clearly within my expectations. My backups can range from 4-9 minutes and restores can take a little longer which is worth every minute for a disaster recovery plan. I have yet to try the FTP or TCP/IP backups so I cannot report on those features, but for “geeks-sake” I will look into these when time permits and report on my findings.

Two other interesting features of Sprite Backup are the Restore “Upgrade” (see Figure B PC console screen) feature and the Sprite Explorer tool. The Restore “Upgrade” features allows restoration of a backup to the same device with a different ROM (usually an upgraded ROM) or to a different device entirely. While this is an unpopular move by most device users, it is an interesting and perhaps useful function for those who do not wish to reinstall applications or data after a ROM or device change. The Sprite Explorer tool is reminiscent of Symantec’s Ghost Explorer tool. Sprite Explorer allows browsing of your Sprite Backup EXE files so that you can review the details of the backups and restore individual files to your PC. Sprite Explorer will also identify which version of Sprite Backup was used for the creation of the EXE file. When browsing a password protected EXE backup file, Sprite Explorer will prompt for the correct password before revealing the contents.
fonte: http://www.fuzemobility.com/?p=1805
 

Attachments

amir77a

Senior Member
May 1, 2004
446
6
0
Thanks.

I made a fresh backup with Sprite, after a new fresh install.

When Dutty will launch his 1.9 ROM :) , I will try o upgrade with Sprite, otherwise I'll goto sashimi.

Amir.
 

The Whistler

Member
Feb 5, 2009
32
1
0
I'm sorry for making this so long
I liked the posting for its longeness... I really made me wanting to have a look at SASHIMI. :)

However, I am not much into MortScript, yet - would you mind to share your customization files?
I think it would be very helpful for me to have a starting point for my own work...

Thank you,

The Whistler
 

do0fusz

Senior Member
Feb 1, 2009
135
1
0
Groningen
i like the tought of just installing the ONE app.
And when i flash, that this will restore my personal settings, games, and programmas.

going to read up on this!
still, thanxxx!!
 

imakul8

Senior Member
May 25, 2010
860
247
73
New Orleans, LA.
I recommend that you get the following: Resco Explorer (w/registry addon), Orneta Notepad (or MobilePad). With these, most of the work can be carried out on the phone itself. To figure out the registry settings for a certain program or option, there are two ways:
- manual search, typically fast and has a very high success rate by first visiting HKLM\Software and HKCU\Software, then looking for the vendor or software name.
- registry diff, slow but very accurate, requires PC (for now). Export HKLM+HKCU (using multiple select in Resco regedit) *before* you make the configuration change, and *after* you've made the change. Copy the two reg files to a PC and do a diff (WinMerge should do a good job). Alternatively, you can use a Windows tool like Registry Workshop or CeRegEditor to export the registries, but I think the first way is faster, and you can actually prepare the exports on the move, then do the diffs when you come home.

Some programs store configuration data in files - these *may* be a bit harder to figure out, but they're usually in the installation folder. Once you've set up such a program to your liking, copy its CAB to SASHIMI\Auto\CAB and the configuration file to SASHIMI\Auto\Root\Program Files\<app name>, and the app will be as you want it after the hard reset.
All very helpful so nevermind the long windedness.:D I've been using Sashimi and I've managed to backup some apps to my satisfaction. I've have been trying to backup CorePlayer settings. I have backed up its regs keys. I have also backed up it's program files folder and reinstalled it manually with no success. What is the configuration file you are referring to that should be copied to SASHIMI\Auto\Root\Program Files\<app name>? Do you mean a file within program files or some other file?
 

Cheech1976

Senior Member
Jul 28, 2010
1,053
279
103
what about spbbackup2, easiest backup ever, and the files are self extractable so you don't even need to install spbbackup again to restore a rom.
SBPBackup backs up the complete registry, so this would be a problem if something has changed from one rom Version to another (as f.e. stated in the first post of the Energy rom´s thread), thus this program would not be ideal for restoring a backup after flashing to a different rom.

Restoring backup´s to the same rom version however, this is what sbpbackup is perfect for.
 

Fallen Spartan

Moderator Emeritus- Irish Pride, Spartan Legacy
SBPBackup backs up the complete registry, so this would be a problem if something has changed from one rom Version to another (as f.e. stated in the first post of the Energy rom´s thread), thus this program would not be ideal for restoring a backup after flashing to a different rom.

Restoring backup´s to the same rom version however, this is what sbpbackup is perfect for.
Agreed, SPB Backup should only be used emails, contacts etc.

A full backup should only be used if you are trying to restore rom i.e. if something happened to it. It shouldn't be used when swapping between different rom builds as the registry settings/paths would be different