Skip to content
Français

Recovery commands

Inspect retained data before restoring or deleting it. The recovery guide explains the safe order; this page lists command options.

Inspect the workspaces, retained transfers and recorded activity under a repository’s .outpost. This command reads the inventory without changing it.

outpost recovery inspect [--repository PATH | --runtime-directory PATH] [--max-entries N] [--git] [--locks] [--resources] [--json]
FlagDefaultValues and effect
--repositoryCheckout of the current directoryRepository whose .outpost is listed.
--runtime-directoryNoneControl directory for file workspaces; inspection without Git.
--max-entries100000Stops the inventory after this many entries.
--gitOffAdds each workspace’s branch, HEAD and dirty state.
--locksOffAdds local lock PIDs and ownership.
--resourcesOffAdds recorded sandbox activity.
--jsonOffJSON report.

It changes nothing. It exits 1 when the inventory is partial.

Verify a retained transfer before restoring it. You can compare checksums and test whether its patches apply in a temporary clone.

outpost recovery transfer verify --path TRANSFER [--checksums [--max-bytes N]] [--restorability --repository PATH] [--json]
FlagDefaultValues and effect
--pathRequiredRetained transfer directory.
--checksumsOffCompares the files with the transfer’s checksum manifest.
--max-bytes1 GiBBytes checked by --checksums, which it requires.
--restorabilityOffApplies the transfer’s patches in a temporary clone of --repository.
--repositoryNoneCheckout used by --restorability; they go together.
--jsonOffJSON report.

It changes no source files; restorability checks create a temporary clone. It exits 1 when a check fails or is incomplete.

Restore the saved host state or incoming sandbox changes into a new directory. Preview the plan first, then add --apply when you are ready to create the copy.

outpost recovery transfer restore --path TRANSFER --repository PATH --destination NEW_PATH --side previous|incoming [--max-bytes N] [--apply] [--json]
FlagDefaultValues and effect
--pathRequiredRetained transfer directory.
--repositoryRequiredCheckout the transfer belongs to.
--destinationRequiredNew directory outside the repository; it must not exist.
--sideRequiredprevious (host state before synchronization) or incoming (sandbox changes).
--max-bytes1 GiBLargest retained payload accepted.
--applyOffCreates the destination; without it, prints the plan.
--jsonOffJSON plan or result.

The restored copy is a detached checkout. The transfer stays in place; review the copy before integrating it.

Preview the removals selected by your JSON retention policy. Add --apply to delete those entries after reviewing the plan.

outpost recovery prune --policy FILE [--repository PATH] [--apply] [--json]
FlagDefaultValues and effect
--policyRequiredJSON policy file, up to 64 KiB (format).
--repositoryCheckout of the current directoryRepository whose .outpost is pruned.
--applyOffDeletes the candidates; without it, a dry run.
--jsonOffJSON plan and result.

It exits 1 when the inventory is incomplete, the projected size exceeds the policy’s limit, or --apply had to keep a candidate. Branches and recovery artifacts are always kept.

Inspect an interrupted publication before choosing to finish it or reverse its writes. These commands do not replay tasks. Use the namespace and publication ID reported by the error.

outpost recovery publication inspect --runtime-directory .outpost --namespace documents --publication-id ID --json
outpost recovery publication finish --runtime-directory .outpost --namespace documents --publication-id ID --processes-stopped --json
outpost recovery publication rollback --runtime-directory .outpost --namespace documents --publication-id ID --processes-stopped --json

--processes-stopped asserts that you have stopped the owning processes; it does not stop them. rollback reverses only writes it can still recognize: it does not overwrite concurrent edits or undo writable-mount effects. Keep backups after a refusal.

To use a YAML project’s transport, add --file recipe.yaml --config outpost.yaml. With both options, --run-id ID also refreshes publication state in the matching recipe report, without authorizing task replay.

Inspection returns the workspace state and revision. Stop its owner and release any remote allocation before recovery.

outpost recovery workspace inspect --runtime-directory .outpost --namespace documents --workspace-id ID --json
outpost recovery workspace recover --runtime-directory .outpost --namespace documents --workspace-id ID --revision REVISION --processes-stopped --allocation-released --json

--revision fences changes since inspection. --adopt-files explicitly accepts files from interrupted preparation; --adopt-source accepts a changed mounted source; --portable requests portable restoration. Do not add them to bypass a refusal without inspecting retained work. --file and --config select the YAML project transport. Workflow resume remains separate.

These commands inspect the local path coordination gate and release the inspected revision. Stop all processes using this registry before confirming.

outpost recovery registry inspect --json
outpost recovery registry release --revision REVISION --processes-stopped --json