Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

adb push seems to push everything into the dest folder regardless of their changed/unchanged states. So it wastes a lot of time. Is it possible to sync rather than copy (i.e. to rsync rather than cp)?

I see adb has a sync option, but I'm not quite sure whether it's relevant or not.

share|improve this question
add comment

1 Answer

When running adb without any commands, you get a list of possible commands, and here it is:

adb sync [ <directory> ]     - copy host->device only if changed
                             (see 'adb help all')

Looks pretty relevant to me :)

share|improve this answer
1  
Would you please give an example on how to use this? Say if I want to sync /home/abc/ on PC to /sdcard/abc/ on device. –  cyker Sep 23 '12 at 5:58
    
Did you try adb help all? –  bigbadonk420 Sep 24 '12 at 8:36
1  
Yes. It can sync system/data partition. But I just want to sync one folder on sdcard. Do you know how to do that? –  cyker Sep 24 '12 at 20:22
    
It is not implemented in version <= 1.0.31. –  echo Jan 29 '13 at 1:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.