Is there a way to save all the OS + data like a Time Machine for Mac ?
I would like to hit a button to get an encrypted file from which I can restore later all the OS with it’s data, messages, photos and everything. I have the feeling copying/pasting isn’t enough, am I right ?
Thanks.
Boot intoo TWRP first before using these commands:
adb shell mount
find the dev name for data:
/dev/block/mmcblk0p28 on /cache type ext4 (rw,seclabel,relatime,data=ordered) /dev/block/dm-0 on /data type ext4 (rw,seclabel,relatime,resgid=1065,data=ordered)
/dev/block/dm-0 on /sdcard type ext4 (rw,seclabel,relatime,resgid=1065,data=ordered)
Now use adb to pull all the RAW data: adb pull /dev/block/dm-0 data.img
Only the English language strings are patched to reflect the inclusion of Internal Storage in Data back-ups. If you use TWRP in a language other than English, your back-ups will still include Internal Storage , but the messages displayed by TWRP will be misleading.
For reasons that have yet to be ascertained, uninstallation of the module currently results in the reverse-patching of the TWRP image being attempted twice. The first attempt is successful and returns the image to its former state, but the log of this is then overwritten by a second, unsuccessful attempt. Bear this in mind when viewing the uninstallation log and trying to reconcile the messages here with the actual state of the device’s recovery partition.
I just tested that, it’s not encrypted because adb pulls it. You log into TWRP, data is decrypted then adb pulls it, the resulting image is not encrypted.
I did a lot of testing, but did not find any good reliable backup solution. The adb backup command will be depricated, and i did not got good results with the command. Did you test this?, result?
With time maschine I’m able to restore one file out the backup.
When adb backup and restore is working, it’s always a full restore, not only one file. And that’s what the user is looking for.
what does that backup actually contain?
does it include also pictures, contacts, downloaded files? or do you need to backup that “manually”?
Does it work with all apps data? or are there some app that do not allow to backup their data that way (e.g. bank apps)?