Cod*_*ker 15
cp可用于将单个文件复制到 S3。如果文件名已存在于目标中,则将替换它:
aws s3 cp local/path/to/file.js s3://bucket/path/to/file.js\nRun Code Online (Sandbox Code Playgroud)\n请记住,根据文档,仅sync当自上次运行以来源文件发生了文件更改时,才会对目标进行更新:s3 sync updates any files that have a size or modified time that are different from files with the same name at the destination.但是,cp无论源文件是否已修改,都将始终对目标进行更新。
pyt*_*981 10
使用sync-directory命令的include/exclude选项:
例如,只需将/var/local/path/filename.xyz同步到S3使用:
s3 sync /var/local/path s3://bucket/path --exclude='*' --include='*/filename.xyz'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2253 次 |
| 最近记录: |