I've been using onandroid to make CWM backups of my device for a while now.
It does work really well and I want to take the time to congratulate onandroid developer, congratulations Ameer!
Anyway, I recently got a TWRP image that supports my device and was very pleased with it as it has neat features compared to CWM (which is still awesome and flawless). So, I flashed TWRP recovery image and the next thing I did was create a typical TWRP backup with onandroid (v9.51).
Now, the thing is that I cannot properly restore the backup from TWRP. The system/kernel/recovery images seem to be recovered correctly because the system boots fine after a complete wipe, but the data is just not there. Instead I'm greeted with the typical brand new Android OS language selection, bla, bla. Everything is missing.
In an attempt to understand why I also backed-up my tablet's system and data partitions with TWRP (from recovery), this is what I ended up with both method:
TWRP
=====
system.ext4.win (508 MB)
data.ext4.win000 (1.47 GB)
data.ext4.win001 (805 MB)
Onandroid v9.51
=============
system.ext4.win (507 MB)
data.ext4.win000 (1.02 GB)
data.ext4.win001 (1.16 GB)
data.ext4.win002 (30.0 MB)
TWRPs backed-up data partition is correctly restored while onandroid isn't. Also, the contents of those archives are totally different. TWRP creates a data.ext4.winXXX structure with AndroidManifest.xml, resources.arsc file, res and META-INF folder, etc... while onandroid structure is the raw folder/file structure from the partition. I also need to mention that onandroid doesn't log any error during the process which takes around 10 minutes.
Is this normal? Am I doing something wrong?
I also tried using onandroid through Online Android Backup and I had the exact same result/problem.
PS: FYI my data partition is >2GB
Thanks for the help.
I am having the same problem. Restoring from onandroid backup restores everything but the data for me. I have tried multiple different ways to restore the data but no luck.
Teleshot said:
I am having the same problem. Restoring from onandroid backup restores everything but the data for me. I have tried multiple different ways to restore the data but no luck.
Click to expand...
Click to collapse
Sorry about this but... FINALLY!
I thought nobody else had this damn problem.
I concluded onandroid is the problem because the backups do not follow the norm in comparison to the ones made by TWRP recovery.
I'm not sure if TWRP backups were officially made differently in previous versions. This is the single thing keeping me from using TWRP as a whole.
I even posted this issue on onandroid Github but so far I had no reply from the developer. Fortunately I have a choice between TWRP and CWM, unfortunately not everyone has both compatible custom recovery roms.
I have the same problem with a CWM based recovery. Everything is restoring fine but when It comes to the data it stops with an error
DirkStorck said:
I have the same problem with a CWM based recovery. Everything is restoring fine but when It comes to the data it stops with an error
Click to expand...
Click to collapse
That is a very different issue and I don't get errors restoring TWRP backups, it just doesn't restore the data.
Anyway, what error(s) do you get while restoring your CWM backup?
Is your data partition over 2GB?
What CWM backup method do you use (default, split, incremental)?
What is your CWM rom version?
Related
Hello, while I was using my phone it rebooted and aparrently someting from my /data got corupted disabling my Rom from booting ever again.
So I created a nandroid via CWM6, installed a new rom and I'm now scratching my head on how to extract certain apps from that backup. Using CWM5 I could do this via the use of Titanium Backup, but now it's more complex than that CWM6 nandroids are unreadable from anything that exists out there. The only app which could analyze the backup correctly was the latest beta of "app extractor" but even that could not extract the apks *with* their data.
Basically my apps' data is precious and I wish to restore it at all costs, I have a nandroid of them, but the format is so unspeakably complex that it is basically useless. So the other "solution" was restore the nandroid and pull the whole /data partition in my PC via ADB, but I'm not sure what I can do with it.
So as it stands I now have two copies of my apps, one in a nandroid format another as it was pulled from the phone but I'm not sure how I can go on and restore them in a new rom. As I have found out CWM6 was quite a downgrade for/to those who backup/recover frequently, it's sad that I have found about it in such a disastrous way
"extractTarFork error 255" when restoring data partition from nandroid backup (TWRP)
I've just wiped my phone to get rid of a problem I was having. My first plan was to take a relatively recent full nandroid backup, wipe and restore to that point. Second plan was the wipe and flash my ROM again, and then restore /data.
My problem lies only with restoring the data partition of my nandroid backup. It gets some of the way through before producing the following error:
Code:
extractTarFork() process ended with ERROR: 255
I've tried using the built-in repair/resize partition tools, and using adb shell to e2fsck the relevant partitions (But I'm not sure if this made any difference). The problem persists when restoring the data partition with any backup, not just recent ones.
What should I do?
Thanks!
Latest TWRP
Latest stable CM13
S5 G900F
Bump? I've looked at responses to other people having these issues, but they're either not quite applicable, or don't appear to work for me.
Judging by how busy this sub-forum is, I'm guessing my post it too complex (or something) for it. I'll give it one more shot before finding another place on XDA and hoping it's more appropriate :/
This looks to be the most appropriate subforum. Bump.
Bit confused here.
Did a backup of the stock ROM using TWRP when I got the phone - all partitions apart from Data which would not backup from TWRP. I've just done a restore (again from TWRP) - just using the 'System' partition, did a factory reset (wipe data/caches) and the device won't get past the Samsung boot screen. I can still get into TWRP etc. Is there special trick I'm missing? Would I need to restore the 'Boot' partition for it to work as well or any other partitions?
Bit worrying given that my EFS "backup" is potentially worthless as well if I can't restore the rest of the backup properly!
You don't use backups from twrp with this device as far as i know.
You need to flash a stock firmware.
I've always used an app like gobackup to backup and restore my phone. Samsungs don't like certain things in system being touched.
Beamed in by telepathy.
How to recover data from "adb backup --twrp" archive? Been through hell and back
I have two backups I made using "adb backup --twrp" while my OnePlus one phone was in TWRP recovery 3.2.1-0 running LineageOS with a recent build (don't know exactly which one, but it was from Feb/March 2018). Each of the backups are about 6.0GB so they appear to be complete backups. I am trying to recover one app and its data (Signal/Textsecure) but the rest would be nice too. The backup files have .ab extensions. I am fairly android savvy and have been working on this for days, your help is VERY MUCH APPRECIATED! I have access to Windows and Linux.
I have tried the following:
-"adb restore filename.ab" while in TWRP recovery. It appears to restore (progress bar goes, it reports success, etc), but no apps are restored. I have tried this both with totally wiped partitions/system/data and with a fresh install of LineageOS. As far as I can tell, nothing happens. When doing a restore after a full wipe and trying to restart, TWRP warns that no OS is installed.
-Restoring using the restore menu in TWRP. Immediately upon clicking on the backup, the phone restarts and TWRP opens again. Not sure what's going on there.
-Opening the backups in Titanium Backup, Nandroid manager, and a few other apps. None of them worked. Titanium backup crashes instantly in recover from ADB, doesn't recognize the backups in nandroid recovery mode.
-Opening the .ab files in an archive manager, all of which report it isn't a valid tar archive. One time I was able to get a list of directories, and things looked pretty right, so I know at least some of the data should be there. Running variants of this command with different skip values, none of which produces a valid tar file dd if=file.ab bs=512 skip=1 of=test.tar
Questions:
- Is there a way to extract data from these backups in Linux or Windows outside of Android? From what I read, TWRP adds some stuff in the headers which makes them invalid tar files, and that doing "adb backup --twrp" is different from a regular TWRP backup.
- Why is TWRP crashing? Is there a log I can look at for this and how? Maybe i can find a way to diagnose it that way.
- Where does Signal store message data? I have a flat-file backup that may have this information depending on where it's stored.
- Can I somehow convert these backups to a different format that might be better-tolerated by TWRP or other apps?
- Any good utilities for reading a corrupted tar file? I think all this utility would need to do is skip through the junk at the start.
Hello Everyone!
When I was restoring one of my OrangeFox 10.1_1_stable backups, My device went-off almost in the middle of the backup. I somehow managed to bring it alive. But when I restored my backup with TWRP 3.2.3-1 recovery, it was restored perfectly, and the system booted.
I had posted my problem in detail here http://forum.xda-developers.com/showpost.php?p=83046045&postcount=667
I want to know whether the recovery had bugs OR I made the error of restoring the wrong partitions?
And I have one more query too -
In official TWRP, I always made backup of every partition EXCEPT RECOVERY AND FIRMWARE, and never ever had even a single problem in backup or restore.
But in Orangefox, I saw some partitions, which were not in TWRP. The backup in which I faced problem had all partitions EXCEPT RECOVERY AND INTERNAL STORAGE (i couldnt find FIRMWARE in Orangefox, and INTERNAL STORAGE in TWRP).
So, why the two recoveries show different partitions.
And most importantly, which partitions should be backed up, that can be restored safely to get my device in previous state exctly?
So here is some additional detail.
I have one-one backup - one from my TWRP 3.2.3-1, and the other from the OrangeFox 10.1-1-stable on my PC. On viewing the files of the backups, I found the following -
Common files in both the Backups -
aboot.emmc.win
aboot.emmc.win.sha2
boot.emmc.win
boot.emmc.win.sha2
cache.ext4.win
cache.ext4.win.sha2
cache.info
cmnlib.emmc.win
data.ext4.win000
data.ext4.win000.sha2
data.ext4.win001
data.ext4.win001.sha2
data.info
devcfg.emmc.win
efs1.emmc.win
efs1.emmc.win.sha2
efs2.emmc.win
efsc.emmc.win
efsg.emmc.win
keymaster.emmc.win
persist.ext4.win
persist.ext4.win.sha2
persist.info
recovery.log
rpm.emmc.win
system.ext4.win
system.ext4.win.sha2
system.info
tz.emmc.win
vendor.ext4.win
vendor.ext4.win.sha2
vendor.info
Files present in OrangeFox backup but not in the TWRP Backup) -
cmnlib.emmc.win.sha2
devcfg.emmc.win.sha2
dsp.emmc.win
dsp.emmc.win.sha2
efs2.emmc.win.sha2
efsc.emmc.win.sha2
efsg.emmc.win.sha2
keymaster.emmc.win.sha2
modem.emmc.win
modem.emmc.win.sha2
persist_image.emmc.win
persist_image.emmc.win.sha2
rpm.emmc.win.sha2
sec.emmc.win
sec.emmc.win.sha2
splash.emmc.win
splash.emmc.win.sha2
system_image.emmc.win
system_image.emmc.win.sha2
tz.emmc.win.sha2
vendor_image.emmc.win
vendor_image.emmc.win.sha2
Files in TWRP backup that are not in OrangeFox backup -
data.ext4.win002
data.ext4.win002.sha2
data.ext4.win003
data.ext4.win003.sha2
Viewing these... can someone find out which restoring which partition from orangefox caused problem for me?