--- title: "Creating a copy of an object" slug: "creating-a-copy-of-an-object-boto3-tg" tags: ["5.4"] updated: 2026-10-28T01:54:14Z published: 2026-10-28T01:54:14Z canonical: "docs.vastdata.com/creating-a-copy-of-an-object-boto3-tg" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # Creating a copy of an object The [copy_object()](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.copy_object) method creates a copy of an object already stored on the server. ## Example In this example, we copy the object *MyObject* from the bucket *MyBucket* to the bucket *MyOtherBucket* and name the copy *MyObjectCopy*. ```plaintext response = S3_client.copy_object(    Bucket='MyOtherBucket',    CopySource='MyBucket/MyObject'    Key='MyObjectCopy', ) ```