aws-s3-cp: add page (#9219)

pull/1/head
Sherman Hui 2022-10-21 09:12:27 -07:00 committed by GitHub
parent 3c4c4117f1
commit 8de8b5be3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

24
pages/common/aws-s3-cp.md Normal file
View File

@ -0,0 +1,24 @@
# aws s3 cp
> Copy local files or S3 objects to another location locally or in S3.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/cp.html>.
- Copy a file from local to a specific bucket:
`aws s3 cp {{path/to/file}} s3://{{bucket_name}}/{{path/to/remote_file}}`
- Copy a specific S3 object into another bucket:
`aws s3 cp s3://{{bucket_name1}}/{{path/to/file}} s3://{{bucket_name2}}/{{path/to/target}}`
- Copy a specific S3 object into another bucket keeping the original name:
`aws s3 cp s3://{{bucket_name1}}/{{path/to/file}} s3://{{bucket_name2}}`
- Copy S3 objects to a local directory recursively:
`aws s3 cp s3://{{bucket_name}} . --recursive`
- Display help:
`aws s3 cp help`