0

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.

10
  • What Android version is installed on your phone?
    – Robert
    Jul 14 at 6:59
  • @Robert Android 10 Jul 14 at 12:58
  • 1
    The last part of your command is wrong. You can not specify a path, instead adb backup expects there a packagename of the app you want to backup (but that is in conflict with the -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 at 13:30
  • 2
    adb exec-out "tar -c /storage/emulated/0 | gzip" > sdcard_backup.tar.gz 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 at 13:49
  • 2
    gzip is to verify integrity, it simplifies detection of corruptions by exec-out merging stdout messages into the file stream.
    – Robert
    Jul 14 at 13:59

0

You must log in to answer this question.

Browse other questions tagged .