Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How to copy a whole directory (and all of its content recursively) over USB with adb pull? For instance to backup the SD card.
$ adb pull /sdcard backup
failed to copy '/sdcard' to 'backup': Is a directory
The trick is to add /. to the name of the folder you want to copy:
adb pull /sdcard/. backup
This copies the whole directory recursively.