Object Copy

Object copy functionality in Oracle Cloud Infrastructure (OCI) offers a convenient way to duplicate objects across buckets within the same region or even to buckets located in different regions. This capability is particularly useful for data management and redundancy strategies. Let’s delve deeper into the nuances of object copying in OCI.

Understanding Object Copy Operations

Object copy operations in OCI are managed asynchronously by the object storage service. However, it’s essential to note that objects stored in archive storage cannot be directly copied. Additionally, the copy operation does not automatically create destination buckets. Upon successful copying, the destination object is assigned a new E Tag value.

Overwrite Rules: Choosing the Right Approach

When initiating an object copy operation, you have the flexibility to select from four distinct overwrite rules, each tailored to specific scenarios:

  1. Override Destination Object: This is the default option and allows for seamless copying without restrictions based on E Tag values. It’s ideal for general copying purposes.
  2. Do Not Overwrite Any Destination Object: Opt for this rule to prevent the overwrite of existing objects in the destination location, regardless of their E Tag values.
  3. Override Destination Object Only if E Tag Matches: Select this option to ensure that the copy operation proceeds only if the specified E Tag matches that of the destination object. It’s useful for avoiding accidental overwrites.
  4. Copy Object Only if Source E Tag Matches: With this rule, the copy operation is contingent upon the E Tag of the source object matching the supplied E Tag. This ensures precise version control during copying.

Initiating the Object Copy Operation

To initiate an object copy in OCI, you’ll need to provide the following details:

  • Destination Namespace
  • Destination Region
  • Destination Bucket
  • (Optional) Destination Object Name
  • Destination Storage Tier

Once these parameters are set, you can choose the appropriate overwrite rule based on your requirements. Whether you need a straightforward duplication or stringent control over versioning, OCI’s object copy functionality offers the flexibility to accommodate diverse use cases.

In conclusion, mastering object copy operations in OCI empowers users with efficient data management capabilities, ensuring seamless duplication while adhering to specific overwrite rules tailored to their needs.

Previous
Retention Rules
Next
Object Storage Logging