cp exclude some files code example Example: cp exclude file rsync -av --progress sourcefolder /destinationfolder --exclude thefoldertoexclude