To sync all the files that match a pattern recursively:
rsync -rcv –include “*.java” –include “*/” –exclude “*” pdu@10.34.179.196:~/workspace/gds_source ~/tmp
To sync all the files that match a pattern recursively:
rsync -rcv –include “*.java” –include “*/” –exclude “*” pdu@10.34.179.196:~/workspace/gds_source ~/tmp