aws s3 cp ./ s3://my-static-sites/a-site-root --recursive --exclude "*" --include "dist/*"
在我基于 docker 的管道中,我試圖將檔案放入dist/檔案夾中,a-site-root/但我最終得到了a-site-root/dist/index.html等。
如何在沒有路徑段的情況下獲取index.html(以及.html 中的所有其他檔案dist/)?s3://my-static-sites/a-site-root/index.html/dist/
uj5u.com熱心網友回復:
如果要復制dist檔案夾,只需將其指定為源:
aws s3 cp dist s3://my-static-sites/a-site-root --recursive
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/318817.html
上一篇:S3從存盤桶下載多個檔案
