This is mostly for rom developers but I suppose other people might find use for it.
We always tell everyone to do a nandroid backup before flashing anything, and then we often do a cpio backup of data during the rom flash and restore that. redundant.
I've made some scripts to integrate a nandroid compatible backup into the rom install, or any cwm zip for that matter. Then you can restore it as well, or just data. Afterwards, I clear cache, lost+found, dalvik, and tombstones to prevent any problems.
Doing it this way the user has a full nandroid backup, and you have a data backup to restore post rom install.
It also backsup the kernel, recovery and .android_secure... which is apps on the sdcard.
Nandroid Backup Script Pastebin
Nandroid Restore Script Pastebin
Is this similar to this-
http://forum.xda-developers.com/showthread.php?t=951269
only in that its a backup... using my script your backups can be restored in CWM. and it can restore cwm nandroid backups, i made it as an alternative to the current way backups are being made during installs. this gets the kernel, recovery, data system, apps installed to the sd.. everything, and the rom developer can restore whichever parts they deem necessary.. but the full backup is there should the user wish to revert using cwm...
Aha! I do believe I have a use for this in my customizations!
Hello,
I have problems restoring from nandroid backup.
Here what I did"
1) Flashed ROM1 and Flashed Kernel1.
2) Installed all My apps which I use.
3) Took Nandroid back-up.
4) Flashed ROM2. Flashed Kernel1.
5) Installed all apps.
6) After 1 days reflashed ROM1 and Kernel1.
7) Tried restoring Nandroid back-up I created 1 day back.
AND IT FAILS!!
Everytime I did a complete wipe of all data and catch and dalvik.
Same happened with CWM and AmonRa
CWM: md5 sums mismatch!!
AmonRa: Oops! Something went wrong!!
Am I mistaken about Nandroid back-up? Am I doing something wrong?
Actually I wanted to restore all my apps and data related to apps. I took whole system and data and everything backed up in the option.
1 Nandroid backup means it reflashes your backed up system with all your installed apps i.e if you have gb rom and do nandroid backup it will backup your current system( in this case gb) with all installed apps at the time you did backup.
2 You said it failed did it display any error while backing your nandroid backup.
3 Never heard of a backup being failed, you must have messed up something.
4 Md5 checksum mismatch means you either had a bad flash or if you moved or replaced some file also backup from different recovery will not work if you backed up from cmw then you cannot restore from amonra recovery, did you change recovery after backing up if you did then it wont work.
5. If you want to backup your apps and data next time try backing it with titanium backup root.Open titanium backup and press batch and then press backup all apps + data.
6. After flashimg new rom install titanium backup root from google play and press restore all app+data this will restore your apps with data.
7. If you use nandroid backup then your rom also changes to the rom that you had while backing up.
hope this helps
Go to your SDcard.. search and go to clockworkmod folder.. go to backup.. now whichever file you see.. Rename it xyz or anything WITHOUT any space!!
Try restoring then!!
hsingh1993 said:
1 Nandroid backup means it reflashes your backed up system with all your installed apps i.e if you have gb rom and do nandroid backup it will backup your current system( in this case gb) with all installed apps at the time you did backup.
2 You said it failed did it display any error while backing your nandroid backup.
3 Never heard of a backup being failed, you must have messed up something.
4 Md5 checksum mismatch means you either had a bad flash or if you moved or replaced some file also backup from different recovery will not work if you backed up from cmw then you cannot restore from amonra recovery, did you change recovery after backing up if you did then it wont work.
5. If you want to backup your apps and data next time try backing it with titanium backup root.Open titanium backup and press batch and then press backup all apps + data.
6. After flashimg new rom install titanium backup root from google play and press restore all app+data this will restore your apps with data.
7. If you use nandroid backup then your rom also changes to the rom that you had while backing up.
hope this helps
Click to expand...
Click to collapse
I hadn't change anything but the name of the folder with some appropriate name like "CM-9.1.1 Final + CandiedIce Kernel + Apps", so that I can recognize it when I need it. No changes in the 5-6 files of recovery.
Didn't try restoring CWM back-up with AmonRa. Tried Amonra to Amonra and CWM to CWM. Failed all times (almost 5 to 6 times).
Does making folder name without any spaces in between work? If it's so, it's weird!! Is it that way? Should the folder name has to have NO SPACE?
"clockworkmode > backup > CM-9.1.1 + CandiedIce Kernel + Apps" - won't work.
But "clockworkmode > backup > CM-9.1.1+CandiedIce_Kernel+Apps" - will work??
Also, as known CWM couldn't back-up sdext. But otherwise No Error. While AmonRa did all back-up without any sort of error.
Dude.. just do it. WITHOUT ANY SPACE.. if you want to restore!!
And keep a small name!!
Eg: cm9.1.1.candied.ice
Dont use any special characters like $ & #
Thanks
rr0yy said:
Dude.. just do it. WITHOUT ANY SPACE.. if you want to restore!!
And keep a small name!!
Eg: cm9.1.1.candied.ice
Dont use any special characters like $ & #
Click to expand...
Click to collapse
Thanks for the betterment of my knowledge. I shall keep this in mind for future use!! Recently I am stable with CM 9.1.1 without Gapps.
rr0yy said:
Dude.. just do it. WITHOUT ANY SPACE.. if you want to restore!!
And keep a small name!!
Eg: cm9.1.1.candied.ice
Dont use any special characters like $ & #
Click to expand...
Click to collapse
Thanks man for the tip! :good:
I usually put spaces in my backup though i have'nt encountered that problem.
wyndcryst25 said:
Thanks man for the tip! :good:
I usually put spaces in my backup though i have'nt encountered that problem.
Click to expand...
Click to collapse
So keeping a small name and without spaces is important??
sn809 said:
So keeping a small name and without spaces is important??
Click to expand...
Click to collapse
yes, this is Linux, means no spaces.
i have a question about this subject,
if i want to backup my rom my stock 4.1.1 on my galaxy nexus how can i do that so that when and if i choose to return or sell the phone i would like to load up the stock Rom back on the phone in case the person isnt tech friendly.
does a Nandroid back up Rom files and kernel as well ???
thanks for any help guys
fariswheel said:
i have a question about this subject,
if i want to backup my rom my stock 4.1.1 on my galaxy nexus how can i do that so that when and if i choose to return or sell the phone i would like to load up the stock Rom back on the phone in case the person isnt tech friendly.
does a Nandroid back up Rom files and kernel as well ???
thanks for any help guys
Click to expand...
Click to collapse
Use a custom recovery to backup. You can find them at galaxy nexus forum on xda
Yes, it restores everything. Nandroid backup is 1:1 copy of your entire phone memory. It will even restore your messages, call logs, accounts etc
sarus_b said:
Use a custom recovery to backup. You can find them at galaxy nexus forum on xda
Yes, it restores everything. Nandroid backup is 1:1 copy of your entire phone memory. It will even restore your messages, call logs, accounts etc
Click to expand...
Click to collapse
So any NANDroid backup is 1:1?
Does that mean that NANDroid also wipes all data?
Searz said:
So any NANDroid backup is 1:1?
Does that mean that NANDroid also wipes all data?
Click to expand...
Click to collapse
yes, is 1:1; if you restore a nandroid it will take the same space as the rom you backed up, and no, if you make a nandroid backup, you won't loose any data whatsoever, you still can continue using the rom you backed up, but if you are going to restore a nandroid it's better to make a full wipe, like if you are installing a rom, that's the way i do it...
gabo_lope said:
yes, is 1:1; if you restore a nandroid it will take the same space as the rom you backed up, and no, if you make a nandroid backup, you won't loose any data whatsoever, you still can continue using the rom you backed up, but if you are going to restore a nandroid it's better to make a full wipe, like if you are installing a rom, that's the way i do it...
Click to expand...
Click to collapse
No, I didn't mean that you'd lose data when making a backup. That defeats the point of making a backup in the first place, lol.
I was talking about when you restore it. And from what you just wrote I assume that files that aren't overwritten when restoring remain. Similar to how you can flash a ROM "dirty".
Searz said:
No, I didn't mean that you'd lose data when making a backup. That defeats the point of making a backup in the first place, lol.
I was talking about when you restore it. And from what you just wrote I assume that files that aren't overwritten when restoring remain. Similar to how you can flash a ROM "dirty".
Click to expand...
Click to collapse
Files will be overwritten. For example, if you make a nandroid, then update an app, when you restore that nandroid, you will restore the previous version of that app.
Sent from my LG-VM670 using xda app-developers app
upconvert said:
Files will be overwritten. For example, if you make a nandroid, then update an app, when you restore that nandroid, you will restore the previous version of that app.
Click to expand...
Click to collapse
Yea, exactly how I thought it worked. Thanks for confirming that for me.
guys i have some questions.........
1) nanadroid backs up all system apps and saved data like messages, phonelogs, contacts, saved settings right ??
2) if I flash a new ROM and then want to go back to the previous state by flashing nandroid backup, does it unroot my device?
3) I backup system apps + data by nandroid backup and SD card apps by Titanium Backup. Is this right ??
Searz said:
No, I didn't mean that you'd lose data when making a backup. That defeats the point of making a backup in the first place, lol.
I was talking about when you restore it. And from what you just wrote I assume that files that aren't overwritten when restoring remain. Similar to how you can flash a ROM "dirty".
Click to expand...
Click to collapse
4) If I have a backup of stock ROM then flash a custom ROM like CM, system files will be different in CM. SO when I restore the stock ROM, files that are new to CM will still remain right?
sorry for asking noob questions..........I'll really appreciate it if u guys answer this
Hmm
mike_24_11 said:
Hello,
I have problems restoring from nandroid backup.
Here what I did"
1) Flashed ROM1 and Flashed Kernel1.
2) Installed all My apps which I use.
3) Took Nandroid back-up.
4) Flashed ROM2. Flashed Kernel1.
5) Installed all apps.
6) After 1 days reflashed ROM1 and Kernel1.
7) Tried restoring Nandroid back-up I created 1 day back.
AND IT FAILS!!
Everytime I did a complete wipe of all data and catch and dalvik.
Same happened with CWM and AmonRa
CWM: md5 sums mismatch!!
AmonRa: Oops! Something went wrong!!
Am I mistaken about Nandroid back-up? Am I doing something wrong?
Actually I wanted to restore all my apps and data related to apps. I took whole system and data and everything backed up in the option.
Click to expand...
Click to collapse
do you use cwm recovery or twrp idk about twrp but if you are using cwm go to the cwm recovery go down to backup and restore now backup it to sdcard1 (sometimes its shown as backup to external sd card depends on your phone what u use) or just press backup it backups your current rom and your files and now press restore and chose your restore file or if you backup it to your sd card you can do the same thing just chose restore from external sd card and chose your restore file :good: done :good:
what is the best tool do backup my apps and app data, for flashing different roms.
Titanium backup pro (seems to be everyones preference), Rom toolbox pro (seems to do a lot more, and cheaper, better UI) or any other easy and better alternatives?
xkawsx said:
what is the best tool do backup my apps and app data, for flashing different roms.
Titanium backup pro (seems to be everyones preference), Rom toolbox pro (seems to do a lot more, and cheaper, better UI) or any other easy and better alternatives?
Click to expand...
Click to collapse
I personally backup my apps using Titanium then do a nandroid backup so i can revert to where i was should i want to go back to it without doing a fresh install of that rom.
titanium for apps and data. Nandroid to restore as is...
Sorry for being noob, but a bit confused. Say if i'm wanting to play with different roms are these the steps?
1)backup apps/data titanum
2) backup nandroid on TWRP
3) factory wipe/reset
4) flash rom
5) flash gapps
6) wipe cache/dalvik
7) restore nandroid
8) restore apps from titanium
correct?
Remove steps 6 and 7.
You rarely need to wipe dalvik/cache despite how many times people around here say it as if it's essential
A nandroid backup is a complete backup of the state of your phone as it is. ROM/apps/settings/contacts/texts/homescreens...basically everything
If you restore a nandroid after you you install a new ROM, you are essentially restoring your old ROM as it was when you made the backup
so the nandroid backup part is only used to restore if flashing new ROM has failed? just as backup backup lol?
xkawsx said:
so the nandroid backup part is only used to restore if flashing new ROM has failed? just as backup backup lol?
Click to expand...
Click to collapse
Yes.
and 6 isn't required because you'v already done a factory reset
xkawsx said:
so the nandroid backup part is only used to restore if flashing new ROM has failed? just as backup backup lol?
Click to expand...
Click to collapse
Precisely.
Unless you are absolutely confident of what you are flashing, you should really do a nandroid backup before you flash any zip file, not just when changing ROMs. It's good common sense practice.
A nandroid backup is a safe point to restore to in case anything goes wrong. When/if that horror happens, you'll be glad you took the extra time to make the nandroid
- If you have a bad flash without a nandroid backup (e.g. bootloop or device doesn't boot), it can be much harder to recover
- If you have a bad flash with a nandroid backup, restore the nandroid
thanks guys, felt like ive learnt a life lesson lol!
I shall purchase titanium backup!
I have Online Nandroid Backup and TWRP 2.8.0.0 installed on my OnePlus One (CM 11S 25R). The phone is encrypted, and I have made daily nandroid backups. Now I need to do a full restore from one of those backups, but when I boot into recovery, TWRP doesn't find the backups and doesn't recognize internal storage (it says 0 MB). So it seems TWRP can't recognize my encrypted partitions. How can I restore my full nandroid backup?
Do I need to do it from a computer somehow? Do I need to wipe something first?
I am a newbie.
Thanks
Hi there,
I'm new to this forum, I have read a lot, thanx for the info for sa far!
My question is: I have a LG G2 an made a backup using Online Nandroid Backup (NORMAL BACKUP MODE).
When I browse the backup, there's a modem partition (3 MB).
If I try to make a backup using SELECTIVE BACKUP MODE, I can choose what partitions to backup. But there's no option to backup the modem partition.
How can I make a single nandroid backup of this partition?
(I tried to make a nandroid backup of the EFS partition, but that was empty)
Thank you in advance!
Regards Erik
Nobody?