cp exclude files 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
cp -r `ls -A | grep -v "Folder or file name"` destination
rsync -av --progress sourcefolder /destinationfolder --exclude thefoldertoexclude