Copy folder to another location by excluding all sub folders that have a specific name

Solution 1:

You are missing a - before -exclude. The correct command is:

rsync -av --progress --exclude="node_modules" source destination