cp command that is recursive but excludes a directory code example
Example 1: cp all except one folder
cp -r `ls -A | grep -v "Folder or file name"` destination
Example 2: cp exclude file
rsync -av --progress sourcefolder /destinationfolder --exclude thefoldertoexclude