
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'