TWRP Backup - cache, recovery - Nexus 5 Q&A, Help & Troubleshooting

Hi all.
I've been doing backups of my Nexus 5 with TRWP. I chose all options, that is I added 'cache' and 'recovery'.
Question: Is that bad? Should I not backup those?
Thanks.

Just use the ones it defaults to, system, data, boot. You don't need to backup the others. same with wipe, just use the slider thing. Messing with the others can get you on trouble
One other thing, make one backup of the efs only and store that in a safe place off your phone

jd1639 said:
Just use the ones it defaults to, system, data, boot. You don't need to backup the others. same with wipe, just use the slider thing. Messing with the others can get you on trouble
One other thing, make one backup of the efs only and store that in a safe place off your phone
Click to expand...
Click to collapse
Can I recommend having 2 different efs backups on the phone and a copy of each off the phone?
That way you're mitigating the risk of one backup being incomplete and the risk of corruption through transferring the files "offsite"
Sent from my Nexus 5 using Tapatalk

Wow. So it is indeed bad. Why?
What i did:
Backup01: Restore phone to defaults, root, backup of all (including cache and recovery).
Backup02: Configure my phone, backup of all (including cache and recovery).
Backup03: Install apps, backup of all (including cache and recovery).
Should I restore to each of them and make a new backup without cache and recovery?
Thanks.
jd1639 said:
Just use the ones it defaults to, system, data, boot. You don't need to backup the others. same with wipe, just use the slider thing. Messing with the others can get you on trouble
One other thing, make one backup of the efs only and store that in a safe place off your phone
Click to expand...
Click to collapse
rootSU said:
Can I recommend having 2 different efs backups on the phone and a copy of each off the phone?
That way you're mitigating the risk of one backup being incomplete and the risk of corruption through transferring the files "offsite"
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse

rwed said:
Wow. So it is indeed bad. Why?
What i did:
Backup01: Restore phone to defaults, root, backup of all (including cache and recovery).
Backup02: Configure my phone, backup of all (including cache and recovery).
Backup03: Install apps, backup of all (including cache and recovery).
Should I restore to each of them and make a new backup without cache and recovery?
Thanks.
Click to expand...
Click to collapse
What you did isn't bad, it's just the backups will be larger and they have information in them you don't need. Recovery is your twrp recovery and the cache will be recreated when you boot your device

jd1639 said:
What you did isn't bad, it's just the backups will be larger and they have information in them you don't need. Recovery is your twrp recovery and the cache will be recreated when you boot your device
Click to expand...
Click to collapse
OK I see. Then can I just keep those backups with all efs, cache and recovery included? May it lead to problems in future restores?
Thank you!

rwed said:
OK I see. Then can I just keep those backups with all efs, cache and recovery included? May it lead to problems in future restores?
Thank you!
Click to expand...
Click to collapse
You should be ok. The one thing you never want to do is restore an efs partition from one phone onto another phone. That is an instant hosed phone that you can't recovery from.

jd1639 said:
You should be ok. The one thing you never want to do is restore an efs partition from one phone onto another phone. That is an instant hosed phone that you can't recovery from.
Click to expand...
Click to collapse
Yes... I'm reading several articles on that! Pretty scary... I'm gonna do as rootSU suggested and make 2 different backups and store 2 copies offsite, somewhere cloud-based...
I'll then keep these backups I made with all selected. With your first post I thought... I don't know... that maybe restoring these images with all recovery, cache and efs might lead to problems when booting.
If I understand correctly, this is not the case, I just misunderstood you, what you meant is that "it doesn't hurt, it's just not needed", right?
Thank you jd!

Related

Nandroid backup..

I did a nandroid backup bit it said fatal error while backing up bpws...or something like that...(one more thing...will nandroid backup...backup my apps if I lost them??)
Sent from my XT720 using XDA App
vari9 said:
I did a nandroid backup bit it said fatal error while backing up bpws...or something like that...(one more thing...will nandroid backup...backup my apps if I lost them??)
Click to expand...
Click to collapse
For some reason we can't back up all the partitions in nandroid. It should be enough to backup system and data. Optional: boot, logo (if you modified M boot logo), cache (usually not necessary), sd data (if you use ext partition on SD card).
With nandroid of system and data (and the others, but only if you use them) you should expect to be able to go back to exactly how your phone was at the time you made the backup. But you will lose changes you made after you made the backups.
When I'm about to start testing ROMs, I backup system and data. To go back to my pre-testing ROM I restore system and data and then wipe cache partition.
Mioze7Ae said:
When I'm about to start testing ROMs, I backup system and data. To go back to my pre-testing ROM I restore system and data and then wipe cache partition.
Click to expand...
Click to collapse
You want to say system and boot ?
Because changing a room modify system.img and boot.img
The boot.img is the same on all the ROMs thanks to the locked bootloader.
Yeah, I never even bother changing boot.img from the sbf version. If I did I'd probably use the Russian one because I think it was the most recently compiled.
Ok, I wasn't knowing that I always flash boot.img that come with ROM.

[Q] Nandroid Backup

So i think my nandroid backup is nuked... i do a wipe/factory reset, wipe the cache etc etc - tried restoring the backup. After 10mins or so of waiting the process completes and i reboot the phone. I have been sitting here for over 1hr looking at the boot animation.
If there is noway to restore the ENTIRE backup, is there a way i can extract specific stuff like my text messages? I really can't afford to lose them
duwii said:
So i think my nandroid backup is nuked... i do a wipe/factory reset, wipe the cache etc etc - tried restoring the backup. After 10mins or so of waiting the process completes and i reboot the phone. I have been sitting here for over 1hr looking at the boot animation.
If there is noway to restore the ENTIRE backup, is there a way i can extract specific stuff like my text messages? I really can't afford to lose them
Click to expand...
Click to collapse
That seems to happen when /datadata is full or there's some other problem with restoring /data, and the system isn't able to boot. Maybe you can wipe /datadata only and see if boots. I also know that TiBu can extract data from nandroid backups, but I'm not positive whether that applies to messaging.
korockinout13 said:
...Maybe you can wipe /datadata only and see if boots...
Click to expand...
Click to collapse
Let me apologize for my ignorance but how do i do that?
duwii said:
Let me apologize for my ignorance but how do i do that?
Click to expand...
Click to collapse
In recovery, go to mounts & storage, and format /datadata. Although my memory fails me as to where messages are stored...
Sent from my SGH-I897
i forgot to mention that this is a fresh installation (i formatted the entire internal storage, basically coming from STOCK).. i still need to do that wipe you refer to?
duwii said:
i forgot to mention that this is a fresh installation (i formatted the entire internal storage, basically coming from STOCK).. i still need to do that wipe you refer to?
Click to expand...
Click to collapse
Well wiping /datadata may (or might not) allow the phone to boot, because the phone can't boot when that partition is completely full. It also might wipe your messages but I'm not positive.

Clean start?

Ok, how do i completely wipe everything off of my AT&T 1.14 HOX, except for TWRP so that I can install a new rom.
RC196 said:
Ok, how do i completely wipe everything off of my AT&T 1.14 HOX, except for TWRP so that I can install a new rom.
Click to expand...
Click to collapse
I assume you already have twrp installed if so boot into fast boot flash the boot. IMG of rom you desire them boot into recovery wipe system factory reset than flash ROM and enjoy
tactical kitten said:
I assume you already have twrp installed if so boot into fast boot flash the boot. IMG of rom you desire them boot into recovery wipe system factory reset than flash ROM and enjoy
Click to expand...
Click to collapse
Can I delete everything leaving the TWRP folder and a copy of my rom?
RC196 said:
Can I delete everything leaving the TWRP folder and a copy of my rom?
Click to expand...
Click to collapse
Are you talking about the internal SD? If you use Titanium Backup, then obviously you should not delete that folder, as that is where the backup files are located. Aside from that, if you don't want to keep any past data from apps, pics etc, then yes you can delete the internal SD contents (aside from the ROM and TWRP nandroid). There may be some other exceptions (particularly for other backup software that you may be using). But in general, the folders on the internal SD are disposable (if flashing a new ROM). When you install a new app after flashing, if the new app needs a folder on the SD, it will just be created automatically.
Aside from the internal SD, before flashing a new ROM do a factory reset (in TWRP not within hboot) and wipe Dalvik and cache. Nothing else really "needs" to be wiped. System partition (where the ROM is stored) will get wiped when the ROM flashes.
I like to format my SD every Sunday to keep this beast on a diet. Then I flash a Rom, inject it with steroids via a custom kernel, and watch it poop all over the s3's I work with
Sent from my HTC One XL using Tapatalk 2
redpoint73 said:
Are you talking about the internal SD? If you use Titanium Backup, then obviously you should not delete that folder, as that is where the backup files are located. Aside from that, if you don't want to keep any past data from apps, pics etc, then yes you can delete the internal SD contents (aside from the ROM and TWRP nandroid). There may be some other exceptions (particularly for other backup software that you may be using). But in general, the folders on the internal SD are disposable (if flashing a new ROM). When you install a new app after flashing, if the new app needs a folder on the SD, it will just be created automatically.
Aside from the internal SD, before flashing a new ROM do a factory reset (in TWRP not within hboot) and wipe Dalvik and cache. Nothing else really "needs" to be wiped. System partition (where the ROM is stored) will get wiped when the ROM flashes.
Click to expand...
Click to collapse
Yes that's exactly what I want. To wipe out with a fresh start. No apps, no files.
Sent from my HTC One XL using xda premium
then do it buddy!!!
So when you say internal are you talking about the SD or everything?
Sent from my HTC One XL using xda premium
RC196 said:
So when you say internal are you talking about the SD or everything?
Click to expand...
Click to collapse
If you want to wipe the SD card (then flash a ROM), the best way is probably to:
Connect phone to your computer, and copy your TWRP folder (nandroid) to your computer, along with any other backup data, such as Titanium Backup. Then wipe the SD in TWRP.
Mount USB to your computer again, and move the TWRP folder, new ROM zip file, and other backups (like Titanium).
Then in TWRP, factory reset, wipe cache, Wipe Dalvik, then install the ROM.
There is no reason to wipe system, as this gets wiped when your flash the ROM. Some people like to do it "just to be sure". But IMO it serves no purpose. Also keep in mind the second you wipe system, the phone will no longer boot, since you just wiped the OS. People seem to forget that a lot and ask "I wiped system, why won't my phone boot now?"
redpoint73 said:
If you want to wipe the SD card (then flash a ROM), the best way is probably to:
Connect phone to your computer, and copy your TWRP folder (nandroid) to your computer, along with any other backup data, such as Titanium Backup. Then wipe the SD in TWRP.
Mount USB to your computer again, and move the TWRP folder, new ROM zip file, and other backups (like Titanium).
Then in TWRP, factory reset, wipe cache, Wipe Dalvik, then install the ROM.
There is no reason to wipe system, as this gets wiped when your flash the ROM. Some people like to do it "just to be sure". But IMO it serves no purpose. Also keep in mind the second you wipe system, the phone will no longer boot, since you just wiped the OS. People seem to forget that a lot and ask "I wiped system, why won't my phone boot now?"
Click to expand...
Click to collapse
Is it normal for TWRP to be 2.58GB?
No its not
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
Are you talking about the TWRP folder? Your NANDROID backups are in there if you took any. That might explain why it's large.
Valohtar said:
Are you talking about the TWRP folder? Your NANDROID backups are in there if you took any. That might explain why it's large.
Click to expand...
Click to collapse
Yes that was it. I just copied my backup to my pc. Freed up a lot of space on phone storage but in app storage it shows 4.23gb and under other it shows 3.85gb. Not sure what that is all about?
*GalaxyFanatic* said:
No its not
Click to expand...
Click to collapse
Yes, its somewhat normal. It depend on the size of the ROM that is currently on the phone, and the other data (apps, etc.). But its not unusual for a nandroid to be a GB or so, so if you have 2 nandroids on the SD = 2.5 GB.
redpoint73 said:
Yes, its somewhat normal. It depend on the size of the ROM that is currently on the phone, and the other data (apps, etc.). But its not unusual for a nandroid to be a GB or so, so if you have 2 nandroids on the SD = 2.5 GB.
Click to expand...
Click to collapse
Thanks for the help
Sent from my HTC One XL using xda premium

[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

half the storage after flash question

Ok, I have done my research and this is a common problem with a new flash, and it happened to me, but I didnt notice it until now. I have the 32 gig nexus, and its only utilizing half of that.
Is there any way at all to correct this without having to wipe everything? I have my phone setup like I want it, and it took a bit of workarounds with lollipop with viper and all.
Or can I at least just make a nandroid? and back up that file somewhere, and then reflash everything or do a wipe to get my space back, and then restore that nandroid? Or will that nandroid bring back the space problem?
Thanks
No. You have to wipe everything. Its the only fix.
Nandroid shouldn't cause an issue. Storage is the issue and nandroid doesn't back up or restore storage.
joho5 said:
Ok, I have done my research and this is a common problem with a new flash, and it happened to me, but I didnt notice it until now. I have the 32 gig nexus, and its only utilizing half of that.
Is there any way at all to correct this without having to wipe everything? I have my phone setup like I want it, and it took a bit of workarounds with lollipop with viper and all.
Or can I at least just make a nandroid? and back up that file somewhere, and then reflash everything or do a wipe to get my space back, and then restore that nandroid? Or will that nandroid bring back the space problem?
Thanks
Click to expand...
Click to collapse
You can wipe userdata via fastboot and fix this issue.
Jnewell05 said:
You can wipe userdata via fastboot and fix this issue.
Click to expand...
Click to collapse
This won't touch my internal SD right? So my backup would be safe? Could wipe userdata and then restore backup?
Thanks for taking the time to help.
Sent from my Nexus 5 using XDA Free mobile app
joho5 said:
This won't touch my internal SD right? So my backup would be safe? Could wipe userdata and then restore backup?
Thanks for taking the time to help.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
You HAVE to wipe your "internal SD"
Take a nandroid, backup ALL your data to PC.
rootSU said:
You HAVE to wipe your "internal SD"
Take a nandroid, backup ALL your data to PC.
Click to expand...
Click to collapse
Which wipe command will wipe all of this?
I am comfortable using adb/fastboot or whatever, but just need to know how to completely wipe it all.
Can I just redo the factory image flash, like i did initially?
joho5 said:
Which wipe command will wipe all of this?
I am comfortable using adb/fastboot or whatever, but just need to know how to completely wipe it all.
Can I just redo the factory image flash, like i did initially?
Click to expand...
Click to collapse
Use fastboot to erase and then flash userdata.img (not whole factory image)
formatting the userdata did the trick...thanks guys.
much appreciation.
Welp, new problem...knew it couldnt be quite that easy.
I copied my whole TWRP folder with the backup inside to my pc, now I cant copy it back. It gives me an immediate error saying it cant copy.
I can click into the folder and copy and paste just the backup folder onto my device, but how can I restore a backup from a custom location, because since twrp doesnt see the TWRP/Backups exact path, then I see no backups to restore from.
Is there a way to restore from say like just sd/backups?

Categories

Resources