Restore nandroid backups (data partition) between different flavor (cm, oos, stock, e - General Questions and Answers

Is it possible to restore data partition from a nandroid backup when flashing different type of roms?
Sent from my ONEPLUS A3000 using Tapatalk

aniel300 said:
Is it possible to restore data partition from a nandroid backup when flashing different type of roms?
Sent from my ONEPLUS A3000 using Tapatalk
Click to expand...
Click to collapse
Thats not possible in the way you'd like to.
You can use a backup tool e.g. Titanium Backup to backup / restore apps
or
extract apps from a nandroid backup (needs "Pro")
Keep in mind that restoring apps to different android versions may potentially cause errors.

LS.xD said:
Thats not possible in the way you'd like to.
You can use a backup tool e.g. Titanium Backup to backup / restore apps
or
extract apps from a nandroid backup (needs "Pro")
Keep in mind that restoring apps to different android versions may potentially cause errors.
Click to expand...
Click to collapse
Thank you for your reply is well appreciated
Sent from my ONEPLUS A3000 using Tapatalk

Related

[Q] What does nandroid backup contain?

Before people start coming in to flame me for using the search button, please let me clarify that i have looked into several threads on xda and none of them provided me with a clear cut answer of what i wanted to know.
I understand first of all is that nandroid backup is a complete image of what is on the phone which should include stuff like settings, sms, call logs, data etc. What i have not found, however, if they keep other files that are lying around in the phone. For example, most of my Nexus S consists of videos and music (7-10GB) and in separate folders that are not tied to any apps in particular. Hence, if they are included in nandroid backup i would not have sufficient storage to do so (reminder that Nexus S has 16 GB)
I have "accidentally" posted on the galaxy S forum of xda and someone pointed out that it backs up apps and data from the internal SD. As far as i know this is slightly different with Nexus S because i observed that most apps are already installed in the "external" SD portion of the data.
Overall, i'm just a little confused. Can anyone clarify this?
It is just apps and data. The sd card is i believe split so that it doesnt touch your music, videos, and images. It just takes care of the main system stuff like apps and settings. Hoped i helped
Sent from my Nexus S using XDA Premium App
But aren't most apps on the nexus S installed on the sd card section of the storage? At least they are under Settings->Application settings->Manage applications->USB Storage
For example my Gameloft games would be almost 1 GB in size so would that be backed up as well. I will end up with gigantic nandroid backups.
A nAnroid backup includes
.android_source - apps2sd information/apps stored on /sdcard
boot - boot image
cache - cache files stored on /cache
data - apps, dalvik other stuff on /data
recovery - recovery image
system - system apps, frameworks modules etc on /system
nadroid.md5 - md5 information
nandroids do not include anything on the /sdcard other than .android_source.
how to do it? by using CWM?? am i wrong or correct??
ciwek90 said:
how to do it? by using CWM?? am i wrong or correct??
Click to expand...
Click to collapse
Correct.
Flash ClockworkMod.
(You might have to rename /etc/install-recovery.sh to get it to stick.)
Boot into fastboot (volumeUp+ power).
Recovery - Backup and Restore - Backup.
Maximilian Mary said:
Correct.
Flash ClockworkMod.
(You might have to rename /etc/install-recovery.sh to get it to stick.)
Boot into fastboot (volumeUp+ power).
Recovery - Backup and Restore - Backup.
Click to expand...
Click to collapse
Awesome! but if i want to flash custom rom and i do backup first then i flash new custom rom, so i can get back all my apps by restoring nandroid backup is it? or nandroid backup is only for when things went wrong? i confuse...
ciwek90 said:
Awesome! but if i want to flash custom rom and i do backup first then i flash new custom rom, so i can get back all my apps by restoring nandroid backup is it? or nandroid backup is only for when things went wrong? i confuse...
Click to expand...
Click to collapse
Nandroid is basically all or nothing. There is an advanced restore which can restore only the partitions you want (like system or data), but it probably won't play nicely with a custom rom. Your best best is to use titanium backup for user apps & data, and perhaps some select system data like texts, bookmarks, and wifi settings. Check out the batch backup/restore options for user apps & data.
ciwek90 said:
Awesome! but if i want to flash custom rom and i do backup first then i flash new custom rom, so i can get back all my apps by restoring nandroid backup is it? or nandroid backup is only for when things went wrong? i confuse...
Click to expand...
Click to collapse
Nandroid backup backs up everything including the rom... so NO you can't restore apps with it.
To just save apks/apps you use eg Titanium Backup.
NOW i know it! Thank you so much @Maximilian Mary and @rentaric for helping me!
Nandroid = for backup/restore previous rom
Titanium = for backup/restore data & apps
Thanks again!
rentaric said:
Nandroid backup backs up everything including the rom... so NO you can't restore apps with it.
To just save apks/apps you use eg Titanium Backup.
Click to expand...
Click to collapse
Bro, does nandroid backup include the IMEI also?
heyimCHOLO said:
Bro, does nandroid backup include the IMEI also?
Click to expand...
Click to collapse
Some recoveries have this option buy many don't, just boot to your recovery and see if it is listed as an option, if not, then no
Your apps will still be on your sd card because your just restoring your operating system that you had with all of it settings it will show all of your apps you had but if you deleted it from the sd card when you try opening it it would say app not installed. Nandroid backup saves everything in settings and operating system apps will be on sd card. Some apps can be included in nandroid it just depends where they are located when back up is saved.

Titanium Backups all I need?

So I tried making a nandroid backup today and it said it failed to make a backup image of my data. So I have a titanium backup as well of all my apps, so if I have that do I necessarily need a nandroid backup as well?
Sent from my SGH-T679 using xda premium
brokenAndroid93 said:
So I tried making a nandroid backup today and it said it failed to make a backup image of my data. So I have a titanium backup as well of all my apps, so if I have that do I necessarily need a nandroid backup as well?
Sent from my SGH-T679 using xda premium
Click to expand...
Click to collapse
It's your choice
nandroid backup is a backup of all data in internal storage so it includes the rom but if you only backup with titanium backup, it will only backup your apps and data
if you want to try other rom you can use nandroid backup to restore to previous rom if you like the previous rom than the newer
and if you want to change rom and doesn't think to change to previous rom you don't need to do nandroid back you can use titanium backup
and don't forget to have enough space in sdcard, nandroid backup use about 300+ MB storage

[Q] Backup phone at the current state

Is it possible to backup my HTC sensation phone to the current state and then restore it later just like how we create backup image of windows operating system and restore?
samkraju said:
Is it possible to backup my HTC sensation phone to the current state and then restore it later just like how we create backup image of windows operating system and restore?
Click to expand...
Click to collapse
Yes back up via recovery you can back up boot,data,system,cashe ,or if you are using 4ext recovery you can do advanced backup
samkraju said:
Is it possible to backup my HTC sensation phone to the current state and then restore it later just like how we create backup image of windows operating system and restore?
Click to expand...
Click to collapse
You can also use Titanium Backup to backup applications and their data, it might be helpful if you want to switch between Sense/AOSP/MIUI ROMs or different versions of AOSP. But if you want to make an exact snapshot of system with all user data/cache/everything else - nandroid backup via recovery is the best
Mile_zdr said:
Yes back up via recovery you can back up boot,data,system,cashe ,or if you are using 4ext recovery you can do advanced backup
Click to expand...
Click to collapse
k3lwin said:
You can also use Titanium Backup to backup applications and their data, it might be helpful if you want to switch between Sense/AOSP/MIUI ROMs or different versions of AOSP. But if you want to make an exact snapshot of system with all user data/cache/everything else - nandroid backup via recovery is the best
Click to expand...
Click to collapse
Titanium backup will only store apps and data. A full nandroid backup will back up every thing on your internal storage, so that everything can be restored without a hitch (apps, data, sms, settings everything). A nand restore will feel as if a change never occured (apps on your SD card will be revived as long as they exist on SD card).
I just tried Nandroid backup via clockworkmod recovery and it is exactly what I was looking for. It worked like a charm. :thumbup:
Sent from my HTC Sensation using xda app-developers app

[Q] HELP needed: Nandroid Backup NOT restoring apps (TWRP 2.6.3.4)

Hi guys,
unfortunately I had to revert back to one of my backups I made as a custom kernel was causing problems. So, I tried to restore a Nandroid backup I made, but that didn't restore my apps and had to go through the standard Google setup (like a had a brand new phone).
I tried again wiping wipe cache, Dalvik cache etc. before restore, but still no restore even though I didn't encounter any problems restoring. I checked the nandroid directory and the files it backed up were these (total size approx. 2 GB)
boot.emmc.win
boot.emmc.win.md5
cache.ext4.win
cache.ext4.win.md5
data.ext4.win000
data.ext4.win000.md5
data.ext4.win001
data.ext4.win001.md5
recovery.emmc.win
recovery.emmc.win.md5
recovery.log
system.ext4.win
system.ext4.win.md5
I'm currently on 4.4.2 with stock kernel (3.4.0.gadb2201), Build no. KOT49H
Any suggestions what the problem could be?
formeriphoneuser said:
Hi guys,
unfortunately I had to revert back to one of my backups I made as a custom kernel was causing problems. So, I tried to restore a Nandroid backup I made, but that didn't restore my apps and had to go through the standard Google setup (like a had a brand new phone).
I tried again wiping wipe cache, Dalvik cache etc. before restore, but still no restore even though I didn't encounter any problems restoring. I checked the nandroid directory and the files it backed up were these (total size approx. 2 GB)
boot.emmc.win
boot.emmc.win.md5
cache.ext4.win
cache.ext4.win.md5
data.ext4.win000
data.ext4.win000.md5
data.ext4.win001
data.ext4.win001.md5
recovery.emmc.win
recovery.emmc.win.md5
recovery.log
system.ext4.win
system.ext4.win.md5
I'm currently on 4.4.2 with stock kernel (3.4.0.gadb2201), Build no. KOT49H
Any suggestions what the problem could be?
Click to expand...
Click to collapse
Highlighted above in red would be the files that have your apps etc.
Run a restore again, and ONLY restore data, see if that helps out.
It should have restored everything unless you just restored boot or system.
btw, since you were just restoring because of a custom kernel, you didnt have to restore anything. all you had to do is flash the stock kernel(or any other kernel) witbout wiping anything, or just reflash your rom without wiping anything. you wouldnt have lost a thing nor have this headache. but, you chose to do it the wrong way.
simms22 said:
btw, since you were just restoring because of a custom kernel, you didnt have to restore anything. all you had to do is flash the stock kernel(or any other kernel) witbout wiping anything, or just reflash your rom without wiping anything. you wouldnt have lost a thing nor have this headache. but, you chose to do it the wrong way.
Click to expand...
Click to collapse
Flashing the stock kernel did work, but after flashing the OTA and rooting caused problems. So I had no choice : (
orangekid said:
Highlighted above in red would be the files that have your apps etc.
Run a restore again, and ONLY restore data, see if that helps out.
It should have restored everything unless you just restored boot or system.
Click to expand...
Click to collapse
Nope, that didn't work either :crying: The files you highlighted are big files, which means it did back something up.
formeriphoneuser said:
Nope, that didn't work either :crying: The files you highlighted are big files, which means it did back something up.
Click to expand...
Click to collapse
sounds like your nandroid file got corrupted
formeriphoneuser said:
Nope, that didn't work either :crying: The files you highlighted are big files, which means it did back something up.
Click to expand...
Click to collapse
Those are your data files. It looks like it backed it up fine.
From all accounts, it should be restoring your ROM 100% as you left it. I really don't get why it wouldn't be doing it with the apps.
jd1639 said:
sounds like your nandroid file got corrupted
Click to expand...
Click to collapse
you would think so, but he's got MD5 files. How is it accepting an MD5 and still be corrupt?
orangekid said:
you would think so, but he's got MD5 files. How is it accepting an MD5 and still be corrupt?
Click to expand...
Click to collapse
Good point if it's checking the md5
orangekid said:
Those are your data files. It looks like it backed it up fine.
From all accounts, it should be restoring your ROM 100% as you left it. I really don't get why it wouldn't be doing it with the apps.
you would think so, but he's got MD5 files. How is it accepting an MD5 and still be corrupt?
Click to expand...
Click to collapse
Yeah, I even activated the MD5 verification in TWRP and I get no errors during the restoring process...I could try an older nandroid backup to see if that makes any difference.
I'm glad I don't just rely on nandroid backups (even though I never restored one).
formeriphoneuser said:
Yeah, I even activated the MD5 verification in TWRP and I get no errors during the restoring process...I could try an older nandroid backup to see if that makes any difference.
I'm glad I don't just rely on nandroid backups (even though I never restored one).
Click to expand...
Click to collapse
I always do mybackup root to save my apps / data as well as nandroid.
Yeah try restoring an older one.
Also try reflashing TWRP
Sent from my Nexus 5 using Tapatalk
orangekid said:
I always do mybackup root to save my apps / data as well as nandroid.
Yeah try restoring an older one.
Also try reflashing TWRP
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Reflashed TWRP and tried again. Same issue. Although the older nandroid took forever and after 45 min. I just shut off the phone as it was going nowhere (status didn't move for that period).
All this makes no sense whatsoever...
formeriphoneuser said:
Reflashed TWRP and tried again. Same issue. Although the older nandroid took forever and after 45 min. I just shut off the phone as it was going nowhere (status didn't move for that period).
All this makes no sense whatsoever...
Click to expand...
Click to collapse
Were the nandroids made on twrp 2.6.3.4 or an earlier version?
jd1639 said:
Were the nandroids made on twrp 2.6.3.4 or an earlier version?
Click to expand...
Click to collapse
Actuatelly I used this app: https://play.google.com/store/apps/details?id=com.h3r3t1c.onnandbup
formeriphoneuser said:
Actuatelly I used this app: https://play.google.com/store/apps/details?id=com.h3r3t1c.onnandbup
Click to expand...
Click to collapse
Now it's making some sense a nandroid isn't necessarily the same depending on how it's created. For instance a nandroid created on cwm is not compatible with twrp and visa versa
As a plan B, you could try Titanium Backup which is capable of extracting apps & app data from nandroid backups. I think the feature requires TB Pro. Takes a while for it to unpack and parse everything, but it could be your best shot at getting a reasonably good restoration.
Sent from my Nexus 5 using Tapatalk
cmstlist said:
As a plan B, you could try Titanium Backup which is capable of extracting apps & app data from nandroid backups. I think the feature requires TB Pro. Takes a while for it to unpack and parse everything, but it could be your best shot at getting a reasonably good restoration.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Thx for all the help guys! Truely appreciate the guidance.
What I didn't know is the nandroid backups I did were compressed. So I decompressed these, but after trying to restore these in TWRP no luck. I can however open and browse these in the nandroid backup manager or TI backup. I'm currently trying to restore the nandroid apps via nandroid backup manager. I'll let you guys know how that turns out.
I'm not sure what the difference between the TI app backup I have is and the current nandroid app+app data restore option would be. Isn't this essential the same thing the TI restore does with the apps?
And for the future what nandroid backup works reliably and would you recommend? I pretty paranoid about making backups, but I seem to have lost quite some confidence in nandroid backup, as it has failed me This has been a royal PITA....
orangekid said:
I always do mybackup root to save my apps / data as well as nandroid.
Click to expand...
Click to collapse
Also do you find Mybackup better than TI Pro root?
formeriphoneuser said:
Thx for all the help guys! Truely appreciate the guidance.
What I didn't know is the nandroid backups I did were compressed. So I decompressed these, but after trying to restore these in TWRP no luck. I can however open and browse these in the nandroid backup manager or TI backup. I'm currently trying to restore the nandroid apps via nandroid backup manager. I'll let you guys know how that turns out.
I'm not sure what the difference between the TI app backup I have is and the current nandroid app+app data restore option would be. Isn't this essential the same thing the TI restore does with the apps?
And for the future what nandroid backup works reliably and would you recommend? I pretty paranoid about making backups, but I seem to have lost quite some confidence in nandroid backup, as it has failed me This has been a royal PITA....
Click to expand...
Click to collapse
I have always used a custom recovery for backups and have never had a problem. I use twrp, but that's just my preference. Cwm is good too
formeriphoneuser said:
I'm not sure what the difference between the TI app backup I have is and the current nandroid app+app data restore option would be. Isn't this essential the same thing the TI restore does with the apps?
Click to expand...
Click to collapse
If you didn't already have a Titanium backup, extracting from the nandroid is a good last resort to have.
The main difference between extracting with Titanium and a full nandroid restore - the latter is very sensitive to small differences in backup format, and can only be restored all at once. In general you shouldn't expect to successfully restore a nandroid in recovery if you created it using a different recovery or an app. If you create with TWRP, it should restore properly with TWRP.
Sent from my Nexus 5 using Tapatalk
I always use Titanium Backup before I flash or backup anything. Then I restore my apps with no problems. It is a bit unusual for your apps not to be in your nandroid backup since it's basically like taking a picture of your phone and storing everything on it. I've never had this problem with TWRP. Hopefully you can figure it out...
Sent from my Nexus 5 using xda app-developers app

[Q] Backup for nexus 5

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!

Categories

Resources