How can I extract individual files from a backup created with TWRP? I’ve come across this answer, which is about extracting an APK from the system partition. However, I want to extract files from
/data, which gets split across several files in the backup.
cat data.ext4.win??? | tar xvf -
What this does is concatenate each file matching the pattern
data.ext4.win??? and then pipe the concatenated files to tar for extraction. the
- as the filename tells tar to extract from stdin.
In this example I used the ext4 formatted data partition. Change
data.ext4 to match the partition you are extracting.
Edited to reflect davidgo's comment.
The files created by TWRP with a
*.win??? extension are tar archives. If a partition gets split across multiple files, each is a tar archive in its own right. Simply rename each file, giving it a
.tar extension, and open it in your favorite archive tool (Engrampa on Ubuntu MATE has worked well for this).
Just extract it with winrar to a folder on desktop and that's it