TeamWin / Team-Win-Recovery-Project

Core recovery files for the Team Win Recovery Project (T.W.R.P) - this is not up to date, please see https://github.com/TeamWin/android_bootable_recovery/
http://twrp.me
1.96k stars 741 forks source link

ADB backup with --twrp option unrestorable #1011

Closed rrama closed 6 years ago

rrama commented 7 years ago

I created a backup with ADB and the --twrp option and compression enabled. I am unable to restore the backup with adb restore whilst running TWRP (hangs, see below) or normally. Copying the file to a USB or internal storage to restore through TWRP displays no partitions in the backup. Also, trying with Titanium Backup it complains that it is incorrectly formatted.


When restoring with adb restore running TWRP:

Updating partition details...
...done
Full SELinux support is present.
MTP Enabled
command is: 'adbrestore' and there is no value
Wiping System
Formatting System using make_ext4fs...
Restoring System...
[System done (1 seconds)]

Then it continues to do the loading bar animation at the bottom, but nothing more is outputted (I left it running overnight).

Logs:

If there is a way to access the logs whilst running the restore, please let me know. recovery.log dmesg.log

Specs:

Steps taken to produce backup:

  1. Launch TWRP.
  2. adb -f backupofph --twrp.
  3. Select all partitions.
  4. Enable compression in the options.
  5. Ensure password is not set. (I know passwords seem to mess everything up)
  6. Make backup.

Manually trying to uncompress the backup:

I could not find appropriate documentation on how to manually uncompress the backup.
I have tried the following to no success:


Thanks in advance!

exentio commented 7 years ago

Same error here, I tried to extract the data in different ways without success. I need at least to recover Authenticator's data. I'm using TWRP-3.1.1-0 for Redmi 4 Prime (markw)

manoskav commented 7 years ago

I faced the same issue on Nexus 4, TWRP 3.1.1-0. Backed up with adb backup --twrp Restored with adb restore backup.ab Seems to restore boot properly but hangs on system partition (says done 1 sec and freezes)

bigbiff commented 7 years ago

This will be fixed in the next release.

bigbiff commented 6 years ago

Please leave a new issue if you still have problems. There are some more bugfixes going in the next release.

Ten0 commented 9 months ago

Looks like I have a TWRP version that has this issue (3.3.1-62) - or at least the same symptoms, from here: https://xdaforums.com/t/recovery-3-4-0-10-cepheus-official-unofficial-twrp-for-xiaomi-mi-9-stable.3905825/

Is this a backup issue, or a restore issue? Is there any workaround? (Such as copying the backup file (or files extracted from the backup file) to the SD and triggering the restoration from there?

Thanks,