tracking: implement restore for additional services
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
Research direction
Choose one unchecked provider, then read its cited backend.rs or core.rs entry point and the linked provider API documentation. Verify the provider's recovery and capability behavior with actual-service tests and preset configuration. Done means the applicable acceptance checklist passes without changing existing delete semantics.
Written by the indexing model from the issue text.
Description
Context
Operator::restore and the first S3 implementation landed in #8143. This issue turns the API discussion in #4321 into a service implementation tracker.
The checklist includes services whose providers expose versioning, delete markers, soft deletion, revisions, or a recycle bin. Other services should keep returning Unsupported until a provider-native recoverable state is identified.
Contract
Each implementation must preserve the public restore contract:
restore(path)succeeds for a live object, restores the latest service-native deleted state, and returnsNotFoundwhen no live or recoverable state exists.restore_with(path).version(version)makes the selected historical version current.if_not_existsis advertised only when the provider offers an atomic destination condition.- One restore call reverses one provider-native deletion state. For services that stack delete markers, repeated calls may expose progressively older states.
- Capabilities must reflect the configured provider and must not be inferred only from a compatible API shape.
Status
Completed
- S3 — #8143 implements current delete-marker removal and version-selected server-side copy. S3 Express keeps restore capabilities disabled because it does not support versioning.
Version and delete-marker services
- COS — OpenDAL already exposes versioned stat/read/delete/list and deleted-entry listing (capabilities). Implement path restore by deleting the current delete marker, and selected-version restore with
CopyObject's sourceversionId(COS API). Do not advertise conditional restore until an atomic versioned-destination condition is proven against COS. - OSS — #9094 implements restore of the current delete marker and restore from a selected historical version. Verified on small objects in a version-enabled OSS bucket.
- TOS — #9094 implements restore of the current delete marker when data versions survive, and restore from a selected historical version. Verified on small objects in a version-enabled TOS bucket.
- OBS — OBS supports versioning, delete markers, and undelete (OBS User Guide, “Undeleting an Object”). OpenDAL does not yet expose OBS version list/read/delete/copy primitives, so add those prerequisites before restore.
Native soft-delete, revision, and recycle-bin services
- Azure Blob — Use
Undelete Blobfor soft-delete-only accounts (REST API). With blob versioning, discover a previous version and copy it to the base blob (versioning behavior). OpenDAL's copy request already accepts a sourceversionid(source). #7178 closed in favor ofrestore. In the real Azure fixture used for #6274, two ordinary blob PUTs returned no version IDs and both deletes returned 202 withx-ms-delete-type-permanent: true. Undelete still needs verification with soft delete enabled and versioning disabled. Version promotion can be verified separately on a version-enabled fixture with two identifiable versions of the same blob. (AI-generated verification note) - GCS — #9106 implements restore on the authenticated default endpoint. A live object is preserved. For a missing path, OpenDAL scans its ordinary and soft-deleted generations and restores the most recently deleted generation while the destination is absent. A selected generation can be promoted with an optional destination-absence condition. Verified on a flat-namespace bucket with versioning and seven-day soft delete.
- Support soft-deleted generations that require a hierarchical namespace
restoreToken. These currently returnUnsupported. GCS restore API
- Support soft-deleted generations that require a hierarchical namespace
- Backblaze B2 — #9104. Path restore preserves a live file or removes one current hide marker when a data version survives. Version-selected restore promotes the requested file ID with
b2_copy_file, subject to its single-copy size limit. - Dropbox —
files/restore(path, rev)requires a revision. When Dropbox includesrevin an upload response, OpenDAL returns it asMetadata::versionin the write result. Ordinary stat and list do not return that revision. Determine how to select a revision forrestore_with(...).version(...)and verify the behavior on Dropbox. Path-only restore must still discover a recoverable revision after deletion. (AI-generated verification update.) - Google Drive — OpenDAL delete moves files to trash (source). In My Drive, setting
trashed=falseon the only matching trashed file (Drive API guide) restored the same file ID, and OpenDAL read back all 48 original bytes. With a live replacement at the same path, OpenDAL read the replacement, the original ID stayed in trash, andrestore(path)returnedUnsupported. For two trashed files with the same parent and name, bothfiles.getandfiles.listomitted the requestedtrashedTime.orderBy=trashedTime descreturned HTTP 400, so this lookup could not identify the latest deletion. (AI-generated verification note) - OneDrive Personal (AI-generated note). Verify recovery of the latest recoverable deletion using only the original path. Graph’s driveItem restore requires a deleted item ID and lists
Files.ReadWrite.Allas the least delegated permission for personal accounts. OpenDAL’s refresh flow requestsFiles.ReadWrite. A previously saved item ID tests only the ID-based action. OpenDAL lists versions of live files. Graph’s restoreVersion takes both the item ID and version ID, creates a new current version, and listsFiles.ReadWriteas sufficient. Promotion and readback on a real account remain unverified.
Investigation or blocked
- Aliyun Drive resolves the file ID and calls
POST /adrive/v1.0/openFile/delete. The consumer Alipan API documentsopenFile/recyclebin/trashas a separate operation. Verification remains open pending evidence from the consumer service that OpenDAL’s existing delete leaves a recoverable item, that the item can be found by its original path, and that it can be restored to that path. (AI-generated verification update.) - Yandex Disk — OpenDAL currently deletes with
permanently=true(source). Restore is blocked until a separate decision changes or parameterizes delete semantics; restore work must not silently change existing delete behavior.
Pull request acceptance checklist
Every service PR should cover the applicable items:
- Advertise only capabilities verified for the configured provider.
- Succeed when the path is already live.
- Restore one recoverable deleted state.
- Return
NotFoundfor an unknown or permanently deleted path. - Promote the selected version when
restore_with_versionis advertised. - Prove both success and conflict behavior against the actual service when
restore_with_if_not_existsis advertised. - Verify repeated deletion/restoration behavior when the provider stacks markers or revisions.
- Add actual-service behavior coverage and preset configuration.
- Document provider-specific prerequisites and limitations.
Provider documentation and request-construction analysis establish feasibility, but they do not replace actual-service behavior tests.
Non-goals
- Changing a service's existing delete semantics inside a restore PR.
- Downloading and re-uploading object data when the provider offers native server-side recovery or copy.
- Claiming recovery for unversioned, expired, or permanently deleted data.
- Dominant language
- Rust
- Stars
- 5.5k
- Forks
- 869
- Avg merge
- 8h 2m
- Merged PRs (30d)
- 862
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/opendal
-
bug(services/fs): deleting "/" removes the configured root directoryPossibly taken @xgbtxy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
apache/opendal#9635 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
core enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
apache/opendal#9572 · 1 reaction ·
Maintainers usually reply within 1 day
-
fix(bindings/nodejs): reject negative and overflowing BigInt values in WriteOptions.chunk and Read/ReaderOptions.gapPossibly taken @rohan4naik claimed this today. Openbindings/nodejs bug
Difficulty 3/5 1-2 days Newbie friendliness 76/100
apache/opendal#9569 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
bug(layers/throttle): throttle streaming ReadStream bytes instead of pre-charging ReadOptions::limit upper bounds on open()Possibly taken @Xuanwo claimed this today. Openbug core
Difficulty 5/5 Over a week Newbie friendliness 25/100
apache/opendal#9567 · 1 reaction ·
Maintainers usually reply within 1 day
-
bindings/c bindings/dotnet bindings/go bindings/java bindings/python bindings/ruby core integrations/object_store release release-blocker services/azblob services/azdls services/dropbox services/gcs_grpc services/git services/hf3fs services/redis services/remotestorage services/s3 website
Difficulty 5/5 Over a week Newbie friendliness 20/100
apache/opendal#9560 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
Android bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anefzaoui/misterdownloadmanager#2516 ·
Maintainers usually reply within 1 day
-
editor ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
state:triage tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 89/100
agent8-cash/ethpayserver#731 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
Maintainers usually reply within 1 day