Rsync (scp) files and exclude certain files

 

I wanted to use scp to copy the files but found rsync to be a better solution:

rsync -rav -e ssh --exclude='file or wildcard' --exclude='directory maybe' . myserver.com:/home/someone/