Orleans.Lattice.Api.Backup
This page documents Orleans.Lattice.Api.Backup 10.5.0, in the documentation for Orleans.Lattice 10.5.0 (release line 10.5), built 2026-12-05. It is also published as markdown, with every table and list, at README.md, and llms.txt lists every page.A transport-agnostic backup / restore control facade for Orleans.Lattice.Backup.
What is it?
Orleans.Lattice.Api.Backup is the control plane of a cluster's backup system. The Orleans.Lattice.Backup package adds the capture, restore, catalog, sink, and authorization engine reached through .NET service interfaces; this package adds the administrative surface an operator dashboard, a CLI, or an internal admin service needs to drive backup and restore, list and describe the catalog, delete backups safely, and inspect scope status - over a single surface with no wire dependency.
It is built the same way as the read-only Orleans.Lattice.Api.State and read-write Orleans.Lattice.Api.Data data-plane facades:
- A transport-agnostic facade. A single control surface (the
ILatticeBackupControlandILatticeBackupOperationspublic contracts in the sharedOrleans.Lattice.Api.Abstractionspackage) exposes capture, incremental, backup-set capture, list, stream, describe, delete, accept-then-poll backup and restore operations, cold restore, revert, artifact export, inventory, catalog repair, scheduling, health, capability, and scope-status operations over plain request / response records. It has no wire dependency, so the same surface serves an in-process consumer and a remote one. - A code-first gRPC binding (the sibling
Orleans.Lattice.Api.Backup.Grpcpackage) that projects this facade onto a remotely callable service and typed client. This package ships no transport of its own; it is the contract every binding adapts over. TheOrleans.Lattice.Api.Mcpbackup tools (AddBackupTools()) adapt the same facade for language-model agents.
Core properties
- Opt-in and absent by default. Nothing registers unless the host calls
AddLatticeBackupApi()on the silo, and once added the facade does no background work until a method is called. - Fail-closed by construction. Operations that touch backup data authorize their scope through the same backup access gate the engine uses before touching data. A capture / incremental / restore authorizes its target scope (a restore whose target cannot be resolved authorizes the reserved backup catalog tree instead, so the check is never skipped); a list / describe / delete authorizes the scope carried by each manifest, and a manifest whose scope the caller may not read is hidden from list and inventory results. Capability and availability probes are advisory and do not mutate data.
- Bounded-memory enumeration. Catalog listing is cursor-resumable and page-bounded; whole-catalog draining and artifact export are streamed, so a large catalog or artifact enumerates with bounded memory rather than being materialized whole.
- Safe deletion, by artifact. Deleting a backup removes its manifest from the catalog and the sink, deletes only the artifacts it owns that no other retained manifest's content descriptors still reference, and discards its stored health report. The check is by artifact id, not by chain: an increment references its base by
BaseBackupId, not by artifact, so deleting a base backup that a retained increment is layered on breaks that increment's restore chain - delete an incremental chain tip-first. The retention pass, by contrast, always preserves the base chain of a retained increment. - Read-only capability probe. A caller can ask, with no side effects, which backup and restore operations it may perform over a given scope. The probe runs the same fail-closed access gate every operation uses and reports the result as an allowed-operation set, so a UI can grey out actions the caller cannot perform without ever mutating state. The probe is advisory only: it never replaces the per-operation authorization each real call still performs.
Ordering
AddLatticeBackupApi() must be called after AddLatticeBackup(...): the backup engine is the source of truth for the capture, restore, catalog, sink, and authorization seams this facade drives. Calling it first fails fast at registration with an actionable message.
Quick Start
Register the facade on a silo after the backup engine, then resolve ILatticeBackupControl or ILatticeBackupOperations from the silo's services, or add the gRPC binding to serve it remotely:
siloBuilder
.AddLatticeBackup() // after AddLattice(...)
.AddLatticeBackupApi(o => o.MaxListPageSize = 500);
Surface
The facade operations. Long captures, restores, health checks, and catalog rebuild or scrub passes use the accept-then-poll ILatticeBackupOperations start verbs, which return a handle immediately and are polled through the shared operation status surface. The blocking LATTICE0002 verbs were removed in this major version; see Backup operations for the old-to-new migration table. The gRPC binding exposes the remote-safe subset as RPCs; inventory stays in-process-only, while tracked catalog rebuild and scrub start over gRPC.
| Operation | Purpose |
|---|---|
| Start backup | Accept a tracked full capture and return an operation handle. |
| Start incremental backup | Accept a tracked incremental capture and return an operation handle. |
| Start backup set | Accept a tracked backup-set capture and return an operation handle. |
| Start restore | Accept a tracked restore and return an operation handle. |
| Start cold restore | Accept a tracked catalog-free restore from the sink and return an operation handle. |
| Start backup health check | Start a tracked health verification of one backup. |
| Start catalog rebuild | Start a tracked rebuild of the catalog from sink manifests. |
| Start catalog scrub | Start a tracked scrub of catalog rows against the sink. |
| Get / list / cancel backup operations | Poll progress, page recent operations, and request cancellation. |
| List backups | One deterministic, cursor-resumable, read-filtered catalog page. |
| Stream backups | Drain the whole readable catalog with bounded memory. |
| Describe backup | A manifest and its base-first restore chain, or absent. |
| Delete backup | Remove a manifest and its unshared artifacts. |
| Revert restore | Undo a shadow-cutover restore. |
| Export artifact | Stream one of a backup's artifacts back chunk-wise. |
| Get inventory | A catalog-wide inventory summary of every readable backup (in-process only). |
| Get scope status | A single scope's schedule and last-run status. |
| Probe capabilities | Report, with no side effects, which backup and restore operations the caller may perform over a scope. |
| Schedule backup | Register or update a runtime recurring full or incremental backup schedule. |
| Cancel schedule | Remove a runtime full or incremental backup schedule. |
| Is health monitoring available | Report whether backup-health monitoring applies for the configured sink. |
| Get backup health | Read the latest stored health report. |
| Configure backup health | Override one backup's periodic health-monitor settings. |
| Get backup health config | Read one backup's effective health-monitor settings: its stored override, else the deployment default. |
| Schedule backup set | Register or update a named recurring backup-set schedule that captures one backup set per interval. |
| Cancel backup-set schedule | Pause a backup-set schedule; its retained sets stay restorable. |
| Remove backup-set schedule | Forget a backup-set schedule and lift its retention holds, optionally deleting its retained sets' backups. |
| Get backup-set schedule status | Read a backup-set schedule's configuration, member trees, next run, recent runs and retained sets. |
| Get backup-set schedule progress | Read only the in-flight run's progress, the lightweight read for polling a run. |
| List backup-set schedules | List the caller's tenant's backup-set schedules the caller may read, in name order. |
| Run backup-set schedule now | Start one run of a backup-set schedule immediately, joining a run already in flight. |
Reference
- API reference - the public options and model types, and the facade operations by name.
- Backup operations - accept-then-poll backup and restore, status polling, cancellation, and migration from the removed blocking verbs.
- Configuration - the public options properties, their types, and defaults.
- Architecture - how the facade authorizes, walks chains, deletes safely, and pages.
See also
Orleans.Lattice.Backup- the capture, restore, catalog, sink, and authorization engine this facade drives.Orleans.Lattice.Api.Backup.Grpc- the code-first gRPC binding and typed client.Orleans.Lattice.Api.StateandOrleans.Lattice.Api.Data- the data-plane facades this control facade is modelled on.