I am trying to do a full copy of /sdcard of my unrooted OnePlus 3T to my Windows PC.

So far I've tried:

  • adb pull /sdcard/ C:\mylocalfolder\

    Works OK but as soon as there is an error it stops the process, so the copy process has been truncated. The error is due to a file containing ":" in the name, so it can't be copied to Windows.

  • adb exec-out tar c sdcard > sdcard_backup.tar

    Doesn't work, it stops inmediatly and creates a corrupted 4kb file.

  • Copy the files using Windows via Data Transfer mode

    Windows halts calculating time to copy files.

Adb pull would be the ideal solution so far if is there a way to skip/ignore errors so it can continue copying the files, or perhaps try to skip the files with certain characters.

I've tryed both Adb version 1.0.32 and 1.0.41 (latest version as of July 2020).

Any suggestion?

  • Keep a small Linux distro installed on PC as secondary OS (even on a USB). Make life easy. // tar is the best way to handle cross platform file name issues. It should work. Try adb shell tar c sdcard > sdcard_backup.tar. Also unlike exec-out this won't merge STDERR with SRDOUT. – Irfan Latif Jul 7 at 18:59
  • 1
    try adebar or adb-sync – alecxs Jul 7 at 19:58
  • adb exec-out "tar c sdcard" > sdcard_backup.tar or adb shell "tar c sdcard" > sdcard_backup.tar should work – alecxs Jul 7 at 19:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.