title: Recursive rsync over ssh, include only one file extension
body: <p>I'm trying to rsync files over ssh from a server to my machine. Files are in various subdirectories, but I only want to keep the ones that match a certain pattern (IE <em>blah</em>.txt). I have done extensive googling and searching on stackoverflow, and I've tried just about every permutation of --include and --excludes that have been suggested. No matter what I try, rsync grabs all files.
  Just as an example of one of my attempts, I have used:
  <code>rsync -avze 'ssh' --include='*blah*.txt' --exclude='*' myusername@myserver.com:/path/top/files/directory /path/to/local/directory</code></p>
  
  <p>To troubleshoot, I tried this command:
  <code>rsync -avze 'ssh' --exclude='*' myusername@myserver.com:/path/top/files/directory /path/to/local/directory</code>
  expecting it to not copy anything, but it still grabbed all of the files.</p>
  
  <p>I am using rsync version 2.6.9 on OSX.</p>
  
  <p>Is there something obvious I'm missing? I've been struggling with this for quite a while.</p>