Page kind: Reference
swarmops repair#
Describes v0.11.0Last changed View as Markdown
Rebuild what the journal can rebuild, quarantine damaged objects, drop damaged cache entries, then verify; the journal itself is never cut.
Metadata
- Group
integrity- Since
0.4.0- Mutates
- yes
- Identity required
- no
- MCP tool
repair- Envelope op
repair- Exit codes
- 0
- Errors
- none
Syntax#
swarmops repair [OPTIONS]Required arguments#
None.
Optional arguments#
The command also takes the global options.
Syntax: --dry-run.
List what it would do, and write nothing.
Examples#
No recorded example yet.
No recorded example yet.
Return information#
result is a RepairResp (swarmops schema RepairResp prints its JSON Schema).
| Field | Type | Required | Description |
|---|---|---|---|
actions | array of RepairAction | yes | What it did, or would do, in order. |
after | VerifySummary | yes | The verify after it. |
Envelope op: repair.
Exit codes:
0: Success.
Errors#
No golden step shows this command failing yet.
Any command that opens a store may also fail with a store error, such as E_NOT_A_REPO, E_IO or E_STORE_CORRUPT; a command line the grammar refuses is E_INVALID_ARG (exit 2).