簡體   English   中英

AWS S3 同步如何排除 *.js 文件但包含 *.min.js?

[英]AWS S3 sync how to exclude *.js files but include *.min.js?

我有一個名為 js/custom 的 javascript 文件夾,其中包含 *.js 文件和擴展名為 *.min.js 的文件的縮小版本,我想確保只上傳 js 文件的縮小版本,如何我能做到這一點嗎?

aws s3 sync /var/www/html/js/custom/* s3://inksedge/js/custom/*
--exclude 'js/custom/*.js' 

上面也將排除縮小版本,我如何得到我想要的結果?

嘗試使用 --include 參數包含最小文件

- 包括

aws s3 sync /var/www/html/js/custom/* s3://inksedge/js/custom/*
--exclude 'js/custom/*.js' --include 'js/custom/*.min.js'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM