From 8de8b5be3cc2180c86782e33afddd1358ae5af51 Mon Sep 17 00:00:00 2001 From: Sherman Hui <11592023+shermanhui@users.noreply.github.com> Date: Fri, 21 Oct 2022 09:12:27 -0700 Subject: [PATCH] aws-s3-cp: add page (#9219) --- pages/common/aws-s3-cp.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/aws-s3-cp.md diff --git a/pages/common/aws-s3-cp.md b/pages/common/aws-s3-cp.md new file mode 100644 index 000000000..dbeadcb38 --- /dev/null +++ b/pages/common/aws-s3-cp.md @@ -0,0 +1,24 @@ +# aws s3 cp + +> Copy local files or S3 objects to another location locally or in S3. +> More information: . + +- 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`