[Q] What kind of backup CWM Manager does? - Galaxy S II Q&A, Help & Troubleshooting

I rooted my phone using CF-root and created a new backup. It prompted me with a file name and it booted to CWM and did a backup.
My question now is, what kind of stuffs did it do a backup?
Firmware?
OS?
App + data as well?
Is it creating a backup of everything or just the firmware/OS? If so I would be glad.
This question might be common to you but I am very new to all this, please advice~

It will backup everything, including boot partition, kernel, your apps and their settings and so on. Modem won't be backed up.

MS. said:
It will backup everything, including boot partition, kernel, your apps and their settings and so on. Modem won't be backed up.
Click to expand...
Click to collapse
So can I do a wipe and restore my backup? If so what kind of wipe?

You can boot into CWM by pressing and holding Volume UP + Home and Power buttons together while phone is turned off. Before flashing new ROM you should wipe DATA and CACHE partitions, also, wiping Dalvik Cache is highly recommended. See attached pics for CWM.

Thank you very much for your feedback, really appreciate it!

Related

[Q] Nandroid did not restore the previous state, all apps missing

Hi guys, I'm in awkward situation. I'd appreciate any tip what to do.
Intro: I might have got some (small) amount of water into the phone, so I removed the battery, dried it for some time and then started it. Everything was OK, but anyway I decided to get it cleaned in service to be sure no corrosion appears later. I wanted to give them phone without any private data, so I decided to root, backup, wipe, give it to them and restore afterwards.
So I rooted with Odin and cf-root-sgs2_xw_clk_kf3-v4-0-cwm4 (I have XWKI4 firmware and this was mentioned as the right one for KI4), everything went fine. The phone was working afterwards. So I booted into recovery and backed it up with nandroid, copied the backups and the content of external storage to the computer, wiped the phone in recovery mode and gave it to the service. They cleaned it.
Today, I wanted to restore the backup, but here came the problem. Everything seems to be running, the backup restore took up to 10 minutes, it showed restoring system, data, displayed file names looked real, etc. No error, so I restarted.
However, after restart, the Android intro wizard was shown, I was asked to enter google login and only standard applications were shown. But wifi got connected, flight-mode was restored upon first launch (I used it for backup), wallpaper was restored. In Titanium Backup, I can see the list of all previously installed applications, but in grey and crossed. I reinstalled some of them, but most of them were crashing. For some of them, backing them up, uninstalling, reinstalling them back and restoring only the data (in Titanium) helps. The rest is not crashing at least, but the data are gone. I also tried Titanium to open the CWM backup, but that works for CWM v5 AFAIK, so no luck here either.
What could have happened? Is there any way how to solve this or is it simply lost?
Some background: Bad things happen together as you might know, one of my SoDIMM modules in laptop failed during this operation. system.img was damaged as a consequence (MD5 hash showed this). I found this when I tried to restore the backup for the first time. So I made a wipe, then made another backup, compared the system.img. I saw the MD5 hash for the new system.img is the same as for the old backup so I took the system.img from there. I was lucky this was not data.img. I'm certain I'm restoring with the correct files now - MD5 hash check runs just fine in total commander and nandroid before restore.
I also remember that my first try was without restored external storage, I did put there only the clockworkmod backup. But I believe this would not cause such situation. To have as much information as possible, I did this - wipe data, restore backup, wipe cache, wipe dalvik cache - start. Problem - wizard appearing. Restore the external storage, get into recovery, wipe data, wipe cache, wipe dalvik, restore, reboot. Wizard again
Thanks for any tip. I'm slowly getting accustomed to installing and setting up everything from scratch. I might install custom ROM finally. But lost data and settings are painful.
Aleq
Did you use CWM to backup and restore? I've had problems restoring when I backed up on CWM5 and tried to restore on CWM4. It looks like it copies fine but doesn't. Even if you're sure you have the same version, if you use CWM5 app and click restore in there, it reverts to CWM4 for restore (for some reason...) so you have to reboot into CWM mode from the app to get CWM5 to 'work'.
For both backup and restore I rebooted to CWM Recovery and navigated using volume up/down to "backup and restore". By the way ClockworkMod Recovery is v.4.0.0.2
Anybody, no ideas?
Is it common that nandroid is unreliable?
Aleq said:
Anybody, no ideas?
Is it common that nandroid is unreliable?
Click to expand...
Click to collapse
No, I had to use nandroid backup several times and every time everything worked fine for me.
First I thought that you forgot to wipe cache partition, but you wrote that you have done it.
Did you tried to wipe cache (and Dalvik cache) before restoring the CWM backup?
If that does not help, try to fix permissions.
If that does not help either, try to flash a stock ROM, then flash CF-Root kernel (or similar with CWM included), then try again to restore your system backup.
As all your apps are still in Titanium Backup, you can uninstall all corrupt apps after restoring your system backup and restore all user apps (+app data) using Titanium Backup.
Maybe you have to reboot your phone twice after restoring the system backup.
And only after the second boot, you will see all your restored apps.
It is just a guess.
Good luck !
Thanks all. I have no idea what was wrong, of course I tried everything - multiple restores, reboots, wiping cache/Dalvik cache, etc. CF kernel failed on me. Luckily not completely, as the data were there, only the apps did not restore. So I installed the apps using Market. They crashed upon start, but I found that if I back them up with Titanium, uninstall them and then restore, it works. Using these steps, I was able to recovery almost everything.
I have used other Kernels since then and never had that issue anymore.
Did you try using advanced restore from within CWM?
If I am not mistaken and that's that functionality that allows you to restore only particular part of backup, then I believe I tried (even though I'm not 100 % sure). I did try fix permissions also.
I'm blaming incorrect / faulty CWM recovery. It just puts some uncertainty into the process in my eyes.
You are the seccond person I've come across with that problem. It's a really strange issue you are facing.
When you tried to restore, did you have the same firmware and cf-root on your phone as when you made the backup?
Yes. I did backup, then wipe/factory reset and gave the phone to service shop (for cleaning after some possible moisture exposure). I have received it in the same state, so I restored - but the apps were missing. I should have tried a different kernel with slightly different CWM recovery.
in my case, this was caused by nandroid getting out of free space when restoring .android_secure...you know what to do

[Q] Is my nandroid restore not working or am I doing something wrong?

Ok I made a nandroid backup on my s2 Gti9100 a few days ago
I then tried to do a titanium backup and my s2 rebooted, I then recieved fcs from a load of apps constatly making it impossible to do anything. I was barely able to turn off, i had to keep taping ok untill i got to power off window.
Then I booted into cwm, wiped cache partition and dalvic and did nandroid restore, i then booted up, no fcs, but all my apps on sd came up in my app drawer and home screen with that grey android icon saying this app is not installed on your phone!
went to recovery again wiped cache and dalvic and data/factory reset
then restored system and data and still had the same problem!
what do i do
please help
p.s. i have not partitioned anything for use in apps like link2sd, no ex whatever
are you doing restore from Advance restore, as you mentioned " then restored system and data....." or from the main restore menu?
Did not you use the Titanium backup for your applications?
Do Not restore System Data is the usual answer to this problem .
jje
JJEgan said:
Do Not restore System Data is the usual answer to this problem .
jje
Click to expand...
Click to collapse
Yes of cosrse, if he is doing his restore from Titanium back up,
but OP's concern is about his Nandroid backup, which is a photocopy of his earlier ROM, NO option to avoid system Data restore unles he goes into the advance restore of CWM....
zaheedahmed said:
are you doing restore from Advance restore, as you mentioned " then restored system and data....." or from the main restore menu?
Did not you use the Titanium backup for your applications?
Click to expand...
Click to collapse
yes i am using advanced restore
and it was titanium backup that caused my problem in the first place, while i was trying to backup
all my settings are stil here aswell as the apps in internal. I think only the apps moved to sd are messed up
could it be a problem with .androidsecure? should i delete this and let nandroid replace it after restore, or does nandroid even backup that?
zaheedahmed said:
Yes of cosrse, if he is doing his restore from Titanium back up,
but OP's concern is about his Nandroid backup, which is a photocopy of his earlier ROM, NO option to avoid system Data restore unles he goes into the advance restore of CWM....
Click to expand...
Click to collapse
I dont mind what method you think of aslong as I can get back to that point
would it be a good idea to extract app backups out of nandroid using titanium, just an idea, i just saw it in its options
if its complicated please explain as im not a phone expert
it is not complicated but a good idea if you have Titanium backup pro (donated version), otherwise you cant...when you selct that option you will automaticaly get prompted the list of applications to install....
By the way why are you selecting advance option for restoring....?
do like this, wipe cache, wipe data fatory reset, and in advance wipe dalvik cache,
go back to Backup and restore select restore at main menu (no advance restore) and select your backup and restore....finish all your stuffs are back....
zaheedahmed said:
Yes of cosrse, if he is doing his restore from Titanium back up,
but OP's concern is about his Nandroid backup, which is a photocopy of his earlier ROM, NO option to avoid system Data restore unles he goes into the advance restore of CWM....
Click to expand...
Click to collapse
Yes sorry i thought he wanted to restore his Nandroid backup and follow that with TB restore .
jje
zaheedahmed said:
it is not complicated but a good idea if you have Titanium backup pro (donated version), otherwise you cant...when you selct that option you will automaticaly get prompted the list of applications to install....
By the way why are you selecting advance option for restoring....?
do like this, wipe cache, wipe data fatory reset, and in advance wipe dalvik cache,
go back to Backup and restore select restore at main menu (no advance restore) and select your backup and restore....finish all your stuffs are back....
Click to expand...
Click to collapse
I have already tried at main menu and advanced, I get the same result
will extracting from nandroid do the trick? with titanium pro
ovgandroid said:
I have already tried at main menu and advanced, I get the same result
will extracting from nandroid do the trick? with titanium pro
Click to expand...
Click to collapse
just try....
I dont know while backing up if there was any arror which is causing the problem...can give the treble when you use TB also...
will tb replace app stuff in .androidsecure or sit beside taking up x2 space?
I went to extract from nandroid in pro and when i select my backup the list is empty, app, data, app+data
ovgandroid said:
I went to extract from nandroid in pro and when i select my backup the list is empty, app, data, app+data
Click to expand...
Click to collapse
hmmm, that is why you are not getting your apps back when you do nandroid restore...
your backup was not done smoothly, only your system data backed up well not user apps...bad luck
so ive lost it all?
Should i delete .androidsecure, is it just junk files now?
great news!!! turns out all my personal data was kept, I just reinstalled everything and it wae back to normal
p.s. i think the cause of nandroid backup fail was lack of space on my phone, how can i backup to external sd?
If you use the CWM app you can choose between internal/external SD for the location of the backup.
ovgandroid said:
great news!!! turns out all my personal data was kept, I just reinstalled everything and it wae back to normal
p.s. i think the cause of nandroid backup fail was lack of space on my phone, how can i backup to external sd?
Click to expand...
Click to collapse
ovgandroid said:
Ok I made a nandroid backup on my s2 Gti9100 a few days ago
I then tried to do a titanium backup and my s2 rebooted, I then recieved fcs from a load of apps constatly making it impossible to do anything. I was barely able to turn off, i had to keep taping ok untill i got to power off window.
Then I booted into cwm, wiped cache partition and dalvic and did nandroid restore, i then booted up, no fcs, but all my apps on sd came up in my app drawer and home screen with that grey android icon saying this app is not installed on your phone!
went to recovery again wiped cache and dalvic and data/factory reset
then restored system and data and still had the same problem!
what do i do
please help
p.s. i have not partitioned anything for use in apps like link2sd, no ex whatever
Click to expand...
Click to collapse
Wipe is not needed when restoring in cwm. hope it helps.
so i have reinstalled all my apps, could there be junk or corrupt or duplicate files left on my phone? in androidsecure? or should these fix themselves or been replaced?
Thanks very much for the help! much appreciated
ovgandroid said:
so i have reinstalled all my apps, could there be junk or corrupt or duplicate files left on my phone? in androidsecure? or should these fix themselves or been replaced?
Thanks very much for the help! much appreciated
Click to expand...
Click to collapse
why you are so worried about such temporory files...
be happy that now your all apps are back.......as far I know wether you delete such dump files or not will not make any difference,
dont delete the contents of the folder "clockworkmode" especially the "backup" forlder thats all...
ok thanks
was just worried because of the size 1.7GB and no apps on sd
but i suppose ill manage

questions about using TWRP to update a ROM without losing information

I know it's possible do restore apps and such using Titanium backup but I'm wondering if it's possible to restore using the TWRP backup?
I'm not sure what the different things do that TWRP backs up. System, cache, recovery, boot, data, (and something else). If it's possible to restore apps and such restoring from some of those, which ones?
Thanks
ItsTommyGun said:
I know it's possible do restore apps and such using Titanium backup but I'm wondering if it's possible to restore using the TWRP backup?
I'm not sure what the different things do that TWRP backs up. System, cache, recovery, boot, data, (and something else). If it's possible to restore apps and such restoring from some of those, which ones?
Thanks
Click to expand...
Click to collapse
Make sure you do a nand backup then after you flash a rom go to your nand backup and restore only the data,
This has worked for me
Sent from my EVO using xda premium
ItsTommyGun said:
I know it's possible do restore apps and such using Titanium backup but I'm wondering if it's possible to restore using the TWRP backup?
I'm not sure what the different things do that TWRP backs up. System, cache, recovery, boot, data, (and something else). If it's possible to restore apps and such restoring from some of those, which ones?
Thanks
Click to expand...
Click to collapse
josh030181 said:
Make sure you do a nand backup then after you flash a rom go to your nand backup and restore only the data,
This has worked for me
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Yes, restoring only the data partition will restore both the application .apk files themselves as well as the application's data files (settings, etc). The issue is when restoring data from a different ROM, the uid/gid could mismatch and cause a boot loop. This is one of the main reasons people suggest to wipe the data before loading a new ROM. Sometimes this issue can be fixed using the script, fix_permissions, in the custom recovery.
I think using Titanium Backup might work around this permissions uid/gid issue and might be one of the reasons people chose this over a nandroid restore of just the data partition.
In regards to your other question of what the different partitions "do" which TWRP backs up, here is a rough list off the top of my head:
system (holds all the Android OS files and stock apps)
data (holds all settings and 3rd party apps)
cache (temp partition usually used to store downloaded OTAs before they are loaded)
recovery (stores the custom recovery)
boot (stores the kernel)
Hope that helps fill in some of the missing details!
joeykrim said:
In regards to your other question of what the different partitions "do" which TWRP backs up, here is a rough list off the top of my head:
system (holds all the Android OS files and stock apps)
data (holds all settings and 3rd party apps)
cache (temp partition usually used to store downloaded OTAs before they are loaded)
recovery (stores the custom recovery)
boot (stores the kernel)
Hope that helps fill in some of the missing details!
Click to expand...
Click to collapse
That does help. Thanks!

Easiest way to backup data to survive super wipe?

Hello,
This has been discussed in the past but a) it a long time time ago, so maybe newer tools are out and b) no definite conclusion was drawn, so please can I ask again, what's the easiest way to back up all apps, data and settings (idealy including home screen settings, ringtones, everything) to survive a superwipe (i.e. restore it after a super wipe and new ROM version installation)?
Thanks in advance.
Use CWM Recovery to do a complete backup. Very easy to backup and restore.
saheb117 said:
Use CWM Recovery to do a complete backup. Very easy to backup and restore.
Click to expand...
Click to collapse
But restoring a CWM backup will overwrite the new system with the old one. What I want is backup all data, apps and settings but not the system data. And then restore them after I install the new ROM.

[Q] CWM Recovery did not restore previous state, apps missing

Been having some issues with my SGS3 and charging, using JellyBam (v7, fairly old, so thought I would start fresh on latest version).
Using CWM5, I did a backup. Factory reset + wipe cache + wipe dalvik cache, then flashed the new ROM. Figured out what I needed to for the charging issues, but forgot I didn't to a titanium backup with all my apps, and more importantly the app data.
I can confirm looking in the CWM data.ext4.tar that the data I want is in there.
So I backed up my new flash setup, restored the previous backup, thinking I would do a titanium backup and get everything setup in my newly flashed ROM. After restore (I did another factory reset + cache + dalvik wipe first), it presents me with the google login wizard, and it seems to have remembered some of my apps but not others. So the restore seems to not have worked.
If I try reinstalling the app it gives me the 'Unknown error code during application install: "-24"' error
Any ideas how I can get the restore to work correctly?
OR some way from the fresh install (providing that restore works too) to grab the app data from my data.ext4.tar and move it into my working install? I tried just copying the file into /data/data but that didnt seem to do the trick
Old CWM
Flash the firmware you made a cwm backup of restore via CWM .
Flash Philz recovery and make a new backup .
Now get 'error while restoring /data'. Seems to be an issue on CWM5 for >2GB backups.
Going to try flashing Philz recovery and try again
Nope no joy. Is there any way I can extract data from a nandroid backup?
As I'm only really fussed about a handful of apps so could do it manually
5 355586
poppahorse said:
Nope no joy. Is there any way I can extract data from a nandroid backup?
As I'm only really fussed about a handful of apps so could do it manually
Click to expand...
Click to collapse
maybe there is the way, but is better if you make a update of your CWM,... 6.0.3 or 0.4 touch... by the way I always use two mores apps for backing up data from my SIII ... one for sms, contacts ecc.. to extSDcard "Super backup pro" and the other app for backup data apps "Ultimate backup pro"

Categories

Resources