Help Center/ Object Storage Service/ Best Practices/ OBS Data Security/ Avoiding Data Loss Due to Misoperations
Updated on 2025-07-09 GMT+08:00

Avoiding Data Loss Due to Misoperations

OBS data that you manually delete or overwrite or that is automatically deleted (by a lifecycle rule or because the outstanding amount is not paid off when the retention period ends) cannot be recovered on Huawei Cloud. This section provides several ways to help prevent your services from being interrupted due to accidental deletion.

The provided suggestions are not equivalent to a complete security solution and may not be suitable for your environment or meet your environment requirements. They are for reference only. You need to pay close attention to your data security and take data security measures in daily use.

Scenarios Where Data May Be Deleted or Overwritten

  • You use OBS Console, API, SDKs, OBS Browser+, obsutil, or obsfs to delete objects. For details, see Deleting an Object.
  • Using OBS Console, API, SDKs, OBS Browser+, obsutil, or obsfs to upload a file with the same name as a previously uploaded file will overwrite the previous file in OBS.
  • Based on a lifecycle rule, OBS automatically deletes the files that meet the deletion criteria defined in the rule. For details, see Lifecycle Management.
  • If you have configured a cross-region replication rule that also synchronizes the add, modify, or delete actions, file modifications or deletions made on the source bucket will be applied to the destination bucket. For details, see Cross-Region Replication.
  • Inappropriate access control may cause files to be maliciously deleted or overwritten by others. For details, see Permissions Management.
  • If your account is in arrears, a retention period is provided according to your tier. During the retention period, your data stored in OBS will be retained, and your account will be suspended. If your outstanding amount is still not paid off when the retention period ends, data stored in OBS will be deleted and cannot be recovered. For details, see Arrears and Renewal.

Enabling Versioning for a Bucket

You can enable versioning to keep multiple versions of an object in the same bucket. This means you can easily search for and restore a specific object version in the event of unintended actions or application failures. For details, see Versioning.

Cross-Region Replication

You can use the cross-region replication feature to replicate data to a remote site for backup. For details, see Cross-Region Replication.

WORM

You can use WORM to protect objects from being deleted or overwritten during a specified protection period. For details, see WORM.