Updated on 2024-04-01 GMT+08:00

Configuring Versioning

Procedure

  1. In the navigation pane of OBS Console, choose Object Storage.
  2. In the bucket list, click the bucket you want to operate to go to the Objects page.
  3. In the navigation pane, choose Overview.
  4. In the Basic Configurations area, click Versioning.

    Figure 1 Editing versioning status

  5. Select Enable. For details, see Figure 2.

    Figure 2 Configuring versioning

  6. Click OK to enable versioning for the bucket.
  7. Click an object to go to the object details page. On the Versions tab page, view all versions of the object.

    Figure 3 Viewing object versions

Related Operations

After versioning is configured for a bucket, you can go to the object details page, click the Versions tab, and then delete, share, and download object versions, and extend the retention period of an object version.

  1. In the navigation pane of OBS Console, choose Object Storage.
  2. In the bucket list, click the bucket you want to operate to go to the Objects page.
  3. In the object list, click the object you want to go to the object details page.
  4. On the Versions tab page, view all versions of the object.
  5. Perform the following operations on object versions:

    1. Download a desired version of the object by clicking Download in the Operation column.

      If the version you want to download is in the Archive or Deep Archive storage class, restore it first.

    2. Share a version of the object by clicking Share in the Operation column.
    3. Delete a version of the object by clicking Delete or More > Delete in the Operation column. If you delete the latest version, the most recent version will become the latest version.

      In a WORM-enabled bucket, if an object has no retention policy configured or its retention policy has expired, you can delete a desired object version on the object's Versions tab page. If an object version is within the retention period, it cannot be deleted.

    4. Locate the object version for which you want to extend the retention period, choose More > Extend Retention Period, and select a date. A retention period can only be extended, but not shortened.