OSX: Can't copy specific files with rsync over SSH

view story

http://superuser.com – I am trying to sync all PHP files to another computer over ssh via rsync. However, it never copies any files. I am on Mac OSX Mountain Lion (10.8.4) Here is what I have tried: rsync --rsh=ssh --verbose --remove-source-files --recursive --exclude=* --include='*.php' $HOME/ pi@raspberrypi:~ building file list ... done sent 36 bytes received 20 bytes 112.00 bytes/sec total size is 0 speedup is 0.00 or rsync --verbose --remove-source-files -e "ssh" $HOME/*.php pi@raspberrypi:~ rsync: link_stat "/Users/simonjackson/*.php" failed: No such file or directory (2) sent 21 bytes received 20 by (HowTos)