Move a file
The Move (mv) operation moves a local file or object to another location locally or in a system.
Note: The example assumes buckets sample and sample2
exist.
Example: Move (upload) a local file to the vault
aws --endpoint-url=https://somename.example.com/ s3 mv someFile.txt s3://sample
Example: Move an object within the same bucket
aws --endpoint-url=https://somename.example.com/ s3 mv s3://sample/someFile.txt s3://sample/someFileBackup.txt
Example: Move an object between two buckets
aws --endpoint-url=https://somename.example.com/ s3 mv s3://sample/someFile.txt s3://sample2/someFile.txt