Because of the incredible success of my adbsync.exe on the Nook Touch (19 downloads! )
I've decided to advertise it to the general Android public.
There are all sorts of GUI file managers that serve as a front end to ADB.
(Some of them appear to use shelling to ADB instead of using port 5037.)
I wanted a command line program for Win32 that could sync my devices before I go out the door.
It had to work with a Nook Touch (2.1) connected on WiFi and a Kyocera Rise (4.0) connected on USB, often at the same time.
As any program with "option-itis", it runs into an alphabet soup of arguments.
The good part is that you mostly just have to get it right once and stick it in a batch or makefile.
There are options for recursive and whether to create missing subdirs or files.
It can copy in either or both direction and even a 3rd destination for resolving discrepancies.
Examples:
Note: For many systems sdcard is just a link (which adbsync.exe will not follow).
Use mnt/sdcard
Download in the signature.
I've decided to advertise it to the general Android public.
There are all sorts of GUI file managers that serve as a front end to ADB.
(Some of them appear to use shelling to ADB instead of using port 5037.)
I wanted a command line program for Win32 that could sync my devices before I go out the door.
It had to work with a Nook Touch (2.1) connected on WiFi and a Kyocera Rise (4.0) connected on USB, often at the same time.
As any program with "option-itis", it runs into an alphabet soup of arguments.
The good part is that you mostly just have to get it right once and stick it in a batch or makefile.
There are options for recursive and whether to create missing subdirs or files.
It can copy in either or both direction and even a 3rd destination for resolving discrepancies.
Code:
usage: adbsync [flags] hostroot androidroot [altroot]
/d device name
/h update host
/a update android
/s search subdirectories
/l list files: d (differences), h (host only), a (android only)
/i ignore files in pattern list
/o only files in pattern list
/v verbose
/q quiet
/1 use 1 second resolution (ext*)
/2 use 2 second resolution (vfat)
Code:
[color=red]Update android[/color]
adbsync C:\Books "sdcard/My Files/Books" /a /v
[color=red]Sync both directions[/color]
adbsync C:\Notes sdcard/Notes /a /h /v
[color=red]Sync both directions but don't overwrite the PC, use another dir[/color]
adbsync C:\Notes sdcard/Notes C:\Fixme /a /h /v
[color=red]Sync both directions including subdirectories[/color]
adbsync C:\Stuff sdcard/Stuff /a /h /s /v
[color=red]Sync only existing files on android[/color]
adbsync C:\Reference sdcard/Reference /au /s /v
[color=red]Update host with photos shot on handy (specifying device by id)[/color]
adbsync /d7a12820e /h C:\Handy\Photos sdcard/DCIM/Camera
[color=red]Update android with photos, but not vacation ones[/color]
adbsync C:\Photos sdcard/Photos /o*.jpg;*.jpeg /ivacation* /a /v
Use mnt/sdcard
Download in the signature.
Last edited: