特定ディレクトリを除外してディレクトリをアーカイブする
下記のようなディレクトリ構成とする
hoge/ 1/ 1.txt 2.txt 3.txt 2/ 2.txt 3/ 3.txt ・ディレクトリ「2」のみを除外したい場合、 [boo@LinuxHost test]# tar zcvf aa.tar.gz hoge/ --exclude hoge/2 hoge/ hoge/1/ hoge/1/1.txt hoge/1/2.txt hoge/1/3.txt hoge/3/ hoge/3/3.txt