Ori*_*Eye 1 command-line-interface amazon-s3
我正在从非顺序的特定日期在s3存储桶文件之间复制。在示例中,我要复制23,因此我想复制15、19和23。
aws s3 --region eu-central-1 --profile LOCALPROFILE cp s3:// SRC s3:// DEST --recursive --exclude“ *” --include“ 2016-01-23 ”
该来源提到使用序列http://docs.aws.amazon.com/cli/latest/reference/s3/ 来包含。
似乎您在询问如何在一个命令中复制多个文件/路径。
在AWS命令行界面(CLI)允许多个--include
规格,例如:
aws s3 cp s3://SRC s3://DEST --recursive --exclude "*" --include "2016-01-15/*" --include "2016-01-19/*" --include "2016-01-23/*"
Run Code Online (Sandbox Code Playgroud)
首先--exclude
说要排除所有文件,然后随后的--include
参数添加要包含在副本中的路径。
请参阅: 在文档中使用排除和包含过滤器。
归档时间: |
|
查看次数: |
865 次 |
最近记录: |