How to exclude binaries when using rsync

Viewed 2826

I want to rsync a directory to server from a mac machine to linux machine while excluding compiled files like .o files and binary executables. How do I exclude binary files?

What I am using at the moment:

rsync -av --compress --exclude="*.o" dir server:dir
2 Answers
Related