Saturday, June 4, 2016

usb - Recursive adb pull



How to copy a whole directory (and all of its content recursively) over USB with adb pull? For instance to backup the SD card.


Attempt:


$ adb pull /sdcard backup
failed to copy '/sdcard' to 'backup': Is a directory

Answer



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.


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...