I tried command adb backup -f backup.ab -apk -shared -all /storage/emulated/0
Then I tried inspect with android backup extractor, it just backing up the APK data, while I expect it backups the entire data /storage/emulated/0
including Whatsapp data, DCIM, and so on.
-all
argument). Note that if you try to perform a backup for migration to a new phone adb backup may not restore app data on the new phone this is now limited to older apps on recent Android versions. – Robert Jul 14 '23 at 13:30adb backup -f backup.ab -apk -shared /storage/emulated/0
If I don't specify path, in this case
– Muhammad Ikhwan Perwira Jul 14 '23 at 13:32/storage/emulated/0
, will it backup the/storage/emulated/0
?\/storage/emulated/0
– Muhammad Ikhwan Perwira Jul 14 '23 at 13:33adb exec-out "tar -c /storage/emulated/0 | gzip" > sdcard_backup.tar.gz
https://android.stackexchange.com/a/233784/2241 Note that the crated gz file will be corrupt if there is output on stdout (e.g. because of error or warning messages by tar). So after creating the gz file make sure to test it on the PC. – Robert Jul 14 '23 at 13:49tee
command, what do you think? Instead of using>
– Muhammad Ikhwan Perwira Jul 14 '23 at 14:44