tarを使用してWebサイトのコンテンツを圧縮すると、ファイルの除外は機能しません。

tarを使用してWebサイトのコンテンツを圧縮すると、ファイルの除外は機能しません。

tar複数のフォルダとファイルを使用して除いて、Webサイトのコンテンツを圧縮しようとしてもerror_log機能しないようです。処理中に除外されたファイルが大量に処理されることがわかります。

私はサイトのルートにあり、tarその中にあるすべてを試していますpublic_html

これは私が実行しているコマンドです。

tar -zcvf files-live.tgz public_html/ --exclude='public_html/cache' --exclude='public_html/uplimg' --exclude='public_html/images/listings' exclude='public_html/sets' exclude='public_html/manage' exclude='error_log'

注: error_log複数のディレクトリに存在するが、望ましくないどのこれには以下が含まれます。

私がここで何を間違っているのか?

ベストアンサー1

exclude=それはあなたが使用したものではありません--exclude=

 tar -zcvf files-live.tgz public_html/ --exclude='public_html/cache' --exclude='public_html/uplimg' --exclude='public_html/images/listings' --exclude='public_html/sets' --exclude='public_html/manage' --exclude='error_log'

おすすめ記事