Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
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? – pzkpfw Sep 24 '12 at 8:36
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
While this command looks promising at first, I couldn't get it to work after a quick try. A real example as requested by cyker would be helpful. – Flow Apr 17 '14 at 18:48

Your Answer


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.