FORUMS
Remove All Ads from XDA

adbsync.exe - Win32 command line syncer

2,453 posts
Thanks Meter: 1,143
 
By Renate NST, Inactive Recognized Developer / Recognized Contributor on 4th February 2013, 08:15 PM
Post Reply Email Thread
7th September 2019, 03:48 AM |#61  
Senior Member
Thanks Meter: 71
 
More
Is there a way to do a dry run like with rsync? Is this what 'list' does? It's not clear.

How do I specify a folder to be ignored when it contains spaces? Use quotes?

Thank you for creating this.
 
 
8th September 2019, 12:34 AM |#62  
Renate NST's Avatar
OP Inactive Recognized Developer / Recognized Contributor
Boston
Thanks Meter: 1,143
 
More
List is not exactly like dry-run.
/lh gives you a list of all the files that could be updated from the host if you wanted to.
/la gives you a list of all the files that could be updated from the Android if you wanted to.
/ld gives you a list that includes both of the above.
/l gives you a list of everything, including files that are the same on both.

/i (ignore files) and /o (only files) apply only to the filename, not directories or path.

If you want a directory on either side to be ignored just "stamp" (zero length file) ".noadbsync" in that directory.

You would use quotes around anything with spaces (or if you just want to overkill and use a leading / in the Android path).
Code:
adbsync C:\Bogus "/sdcard/Ugly Dir/Bogus" /ld /s
The Following User Says Thank You to Renate NST For This Useful Post: [ View ] Gift Renate NST Ad-Free
8th September 2019, 01:55 PM |#63  
Senior Member
Thanks Meter: 71
 
More
Quote:
Originally Posted by Renate NST

List is not exactly like dry-run.
/lh gives you a list of all the files that could be updated from the host if you wanted to.
/la gives you a list of all the files that could be updated from the Android if you wanted to.
/ld gives you a list that includes both of the above.
/l gives you a list of everything, including files that are the same on both.

/i (ignore files) and /o (only files) apply only to the filename, not directories or path.

If you want a directory on either side to be ignored just "stamp" (zero length file) ".noadbsync" in that directory.

You would use quotes around anything with spaces (or if you just want to overkill and use a leading / in the Android path).

Code:
adbsync C:\Bogus "/sdcard/Ugly Dir/Bogus" /ld /s


Thanks for the explanation.

Being able to do a dry run like with rsync and robocopy would alleviate uncertainty when making large changes. Would also be great if we could ignore folders via the command, or even better, point to an exclude.txt like with rsync. Are these features you could add?
9th September 2019, 05:19 PM |#64  
Renate NST's Avatar
OP Inactive Recognized Developer / Recognized Contributor
Boston
Thanks Meter: 1,143
 
More
Configuration files are a whole 'nother can of worms that I don't want to get into.

Maybe you're trying to get everything done in a single invocation of adbsync?
I keep books and reference materials and notes and photos on different places on my devices and desktop.
I just have a few adbsync commands in a batch or makefile.
I find that I don't even use .noadbsync

Maybe you're trying to do:
Code:
adbsync /a /h /s C:\Backup "/" except for this, that, the other thing
How about:
Code:
adbsync /a /s C:\Books mnt/sdcard/Books /o*.epub;*.pdf
adbsync /h /s C:\Photos\MotoE5 mnt/sdcard/DCIM/Camera
...
Post Reply Subscribe to Thread

Tags
adb, sync, tool

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes