[Epic 4G Android Development] nubecoder:
First I'd like to thank the Bonsai team (Mammon88 and Randy_T) for their work.

This little set of files is totally based on their work, I just modified it a bit.

I asked permission before releasing this, and I've left the GPL notices intact.

All changes can be seen by inspecting the files in the zip.

Thank you Team Bonsai!

:[Disclaimer]:

You assume all risks in using these files. Not me, you!

I will attempt to help if anything goes wrong.

But don't try blaming me for something you chose to do.

:[Description]:

There are two ClockworkMod zips, I'll break it down for each file.

ncDataBackup.zip:

This file simply backs up the /data folder to a gzip file on your SD card (exactly like the Bonsai Rom does).

The only difference is that it will store the file in a different folder and file name on your SD card.

The file is stored @ /sdcard/data-backup/backup-data.cpio.gz​

ncDataRestore.zip:

This file first deletes everything in the /data folder.

I figured this would be best so there are no conflicts with files that are already in the /data folder.

[NOTE]:: This also means that if the Rom your are using installs anything into the /data folder, it will be lost during the restore!

Then it simply restores the /data folder from the aforementioned backup file (exactly like the Bonsai Rom does).​

:[Purpose]:

I made this so I never have to setup a home screen again (or loose mms history, call logs, etc)!

For people who are using Roms that don't already preform a backup and restore of the files in /data.

And as an alternative to a bit for bit nandroid backup / restore of the /data partition.

:[Disadvantages]:

As stated, the restore will delete everything in the /data folder before performing the restore.

So anything put there by the Rom you are installing will be lost!

I wouldn't Expect this to work coming from or going to CyanogenMod, but feel free to test for me.

:[Benefits]:

Restores home screens, mms history, call logs, etc...

Can be used whenever for whatever reason (always good to have more options for backup / restore IMO).

:[Usage]:

Boot into ClockworkMod.

ALWAYS DO A NORMAL NANDROID BACKUP WITH CLOCKWORKMOD.

Install the ncDataBackup.zip, it will preform the data backup.

Install your favorite Rom.

Install the ncDataRestore.zip, it will preform the data restore.

Reboot the phone.​

:[Testing]:

This has been tested while running Bonsai v2.0.1.

This has also been tested coming from Bonsai v2.0.1 going to Quantum v2.7.

I only had one FC (gmail) when going to Quantum from Bonsai, and that's because Quantum's gmail wasn't updated.

I simply cleared gmail's data and cache and all was well (then I updated gmail through the market).

[NOTE]:: Both of these Roms are DK28 builds and support EXT4! Your mileage may vary!

:[Feedback]:

Please post your results, good or bad, I'd like to know how well this works for other Roms.

I'm thinking of making a backup/restore zip generator program so this method can be used for other phones.

So if you try this please post your results.

:[Changelog]:

[03-05-2011]

Upgraded files to Bonsai 3.x.

Now uses an included busybox, this should allow support for more Roms/devices(?).

Zip file names have changed.

Also changes have been made to the script output.

Tested on Bonsai 3.x

=]