From 3c4c4117f1e656d8c5fbe9df40a5d0325d925dee Mon Sep 17 00:00:00 2001 From: Sherman Hui <11592023+shermanhui@users.noreply.github.com> Date: Fri, 21 Oct 2022 09:10:59 -0700 Subject: [PATCH] aws-s3-mv: add page (#9221) --- pages/common/aws-s3-mv.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/aws-s3-mv.md diff --git a/pages/common/aws-s3-mv.md b/pages/common/aws-s3-mv.md new file mode 100644 index 0000000000..b3ecf2e5be --- /dev/null +++ b/pages/common/aws-s3-mv.md @@ -0,0 +1,20 @@ +# aws s3 mv + +> Move local files or S3 objects to another location locally or in S3. +> More information: . + +- Move a file from local to a specified bucket: + +`aws s3 mv {{path/to/local_file}} s3://{{bucket_name}}/{{path/to/remote_file}}` + +- Move a specific S3 object into another bucket: + +`aws s3 mv s3://{{bucket_name1}}/{{path/to/file}} s3://{{bucket_name2}}/{{path/to/target}}` + +- Move a specific S3 object into another bucket keeping the original name: + +`aws s3 mv s3://{{bucket_name1}}/{{path/to/file}} s3://{{bucket_name2}}` + +- Display help: + +`aws s3 mv help`