adb-sync icon indicating copy to clipboard operation
adb-sync copied to clipboard

Feature Request: Exclude option

Open yennor opened this issue 7 years ago • 5 comments

it would be great if there would be an exclude options: --Exclude

with which you can exclude certain directories, even better if you could also exclude certain file types (like rsync)

yennor avatar Nov 07 '17 07:11 yennor

Yes, we do need this...

divVerent avatar Nov 27 '18 21:11 divVerent

adb sync --exclude data/

Would be great.

rafaelgp23 avatar Dec 26 '18 19:12 rafaelgp23

I agree that this would be extremely useful

calebplum avatar Oct 30 '22 08:10 calebplum

There is a newer rewrite with these options using Python fnmatch: https://github.com/SelfAdjointOperator/better-adb-sync

This command synchronizes all WhatsApp files (excluding your own from "Sent" subfolders, which are better synchronized from "DCIM" directly) from my phone: adbsync.py --pull --exclude '*/Sent/' ./WhatsApp/ /sdcard/WhatsApp/Media/

fk1000 avatar Feb 05 '23 17:02 fk1000

This command synchronizes all WhatsApp files (excluding your own from "Sent" subfolders, which are better synchronized from "DCIM" directly) from my phone: adbsync.py --pull --exclude '*/Sent/' ./WhatsApp/ /sdcard/WhatsApp/Media/

The path on newer android system (I don't know exactly since when) is no more /sdcard/WhatsApp/ The WhatsApp Media dir is found under /sdcard/Android/media/com.whatsapp/WhatsApp/Media/

Thus: adbsync.py --pull --exclude '*/Sent/' ./sdcard/Android/media/com.whatsapp/WhatsApp/Media/

Halavus avatar Feb 05 '23 20:02 Halavus