add new chinese translations
This commit is contained in:
29
pages.zh/common/aws-s3.md
Normal file
29
pages.zh/common/aws-s3.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# aws s3
|
||||
|
||||
> AWS S3的命令行界面 - 通过Web服务接口提供存储。
|
||||
> 一些子命令,如`cp`,有其自己的使用文档。
|
||||
> 更多信息:<https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/index.html>。
|
||||
|
||||
- 显示存储桶中的文件:
|
||||
|
||||
`aws s3 ls {{bucket_name}}`
|
||||
|
||||
- 从本地同步文件和目录到存储桶:
|
||||
|
||||
`aws s3 sync {{path/to/file1 path/to/file2 ...}} s3://{{bucket_name}}`
|
||||
|
||||
- 从存储桶同步文件和目录到本地:
|
||||
|
||||
`aws s3 sync s3://{{bucket_name}} {{path/to/target}}`
|
||||
|
||||
- 带排除项的文件和目录同步:
|
||||
|
||||
`aws s3 sync {{path/to/file1 path/to/file2 ...}} s3://{{bucket_name}} --exclude {{path/to/file}} --exclude {{path/to/directory}}/*`
|
||||
|
||||
- 从存储桶中删除文件:
|
||||
|
||||
`aws s3 rm s3://{{bucket}}/{{path/to/file}}`
|
||||
|
||||
- 仅预览更改:
|
||||
|
||||
`aws s3 {{any_command}} --dryrun`
|
Reference in New Issue
Block a user