Skip to content

feature requests: Add undelete support #4321

@Xuanwo

Description

@Xuanwo

Part of #2611

After we have object versioning, it's possible for us add API like undelete which can restore a file from deleted states.

There are several possibilities:

  • Add API like undelete / restore which focus on restore deleted files from existing versions.
  • Add API like promote which focus on promote existing version as current version (this covers restore, but harder for users to understand what it does)
  • Extend copy instead of adding new API.
  • Welcome new designs

References

How to restore deleted files in cloud storage?

  • S3: delete delete_marker for an object, delete_marker should be fetched via list_objects_version
  • Gcs: In Cloud Storage, restoring a noncurrent object version means making a copy of it
  • Azblob: To restore the current version, first restore all soft-deleted versions, and then use the Copy Blob operation to copy a previous version to a new current version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions