The following command is working correctly for copying only files matching Mem*rsync -uvma '--include=*/' '--include=**/Mem*' '--exclude=*' ../srcdir/ /targdirI would like to also exclude a certain pattern *.class. Here is the attempted addition:   '--exclude=**/*.class' And the full command is rsync -uvma '--include=*/' '--include=**/Mem*' '--exclude=*' '--exclude=**/*.class' ../srcdir/ /targdirThe addition has no effect. The command does copy *.class files:./target/classes/com/blazedb/sparkperf/MemBattery$$anonfun$3.class./target/classes/com/blazedb/sparkperf/MemBattery$$anonfun$4.class./target/classes/com/blazedb/sparkperf/MemBattery$$anonfun$5.class./target/classes/com/blazedb/sparkperf/MemBattery$$anonfun$6.class./target/classes/com/blazedb/sparkperf/MemBattery.class sent 67536 bytes  received 510 bytes  136092.00 bytes/sec total size is 67080  speedup is 0.99So then how should that exclude pattern be formed?
Exclude pattern not working for rsync
rsync