回答:
rsyncを使用します。
rsync -a --exclude=logs --exclude=log from/ to/
bashを使用している場合:
shopt -s extglob
cp -R test/!(log|logs) /www/test2
test/someotherdir/logsどうなりますか?OPは決して言わlogずlogs、2番目に高いディレクトリでした。
find ~test -not -name logs,logログとログはサブディレクトリになるはずです。
findすべてのサブディレクトリを再帰的に調べます。ファイルのグロビングは行いません。仕事へのあなたの答えのために、logとlogsでなければならないの即時のサブディレクトリtest。