LinuxCommandLibrary

aws-s3-mv

Move local files or S3 objects to another location locally or in S3.

TLDR

Move a file from local to a specified bucket

$ aws s3 mv [path/to/local_file] s3://[bucket_name]/[path/to/remote_file]
copy


Move a specific S3 object into another bucket
$ aws s3 mv s3://[bucket_name1]/[path/to/file] s3://[bucket_name2]/[path/to/target]
copy


Move a specific S3 object into another bucket keeping the original name
$ aws s3 mv s3://[bucket_name1]/[path/to/file] s3://[bucket_name2]
copy


Display help
$ aws s3 mv help
copy

Copied to clipboard