我有一個名為 js/custom 的 javascript 檔案夾,其中包含 *.js 檔案和擴展名為 *.min.js 的檔案的縮小版本,我想確保我只上傳 js 檔案的縮小版本,如何我能做到嗎?
aws s3 sync /var/www/html/js/custom/* s3://inksedge/js/custom/*
--exclude 'js/custom/*.js'
上面也將排除縮小版本,我如何獲得我想要的結果?
uj5u.com熱心網友回復:
嘗試使用 --include 引數來包含最小檔案
- 包括
aws s3 sync /var/www/html/js/custom/* s3://inksedge/js/custom/*
--exclude 'js/custom/*.js' --include 'js/custom/*.min.js'
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/402876.html
標籤:
