snippetbashTip
aws s3 mv — Move local files or S3 objects to another location locally or in S3. More information: <https://docs
Viewed 0 times
commandlocalanotherfilesclimoveobjectsaws s3 mv
Problem
How to use the
aws s3 mv command: Move local files or S3 objects to another location locally or in S3. More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/mv.html>.Solution
aws s3 mv — Move local files or S3 objects to another location locally or in S3. More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/mv.html>.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 helpCode Snippets
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 helpContext
tldr-pages: common/aws s3 mv
Revisions (0)
No revisions yet.