Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Exclude option #21

Open
yennor opened this issue Nov 7, 2017 · 5 comments
Open

Feature Request: Exclude option #21

yennor opened this issue Nov 7, 2017 · 5 comments

Comments

@yennor
Copy link

yennor commented Nov 7, 2017

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)

@divVerent
Copy link
Contributor

Yes, we do need this...

@rafaelgp23
Copy link

adb sync --exclude data/

Would be great.

@calebplum
Copy link

I agree that this would be extremely useful

@fk1000
Copy link

fk1000 commented Feb 5, 2023

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/

@Halavus
Copy link

Halavus commented Feb 5, 2023

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants