Skip to content

Latest commit

 

History

History
64 lines (49 loc) · 3.71 KB

File metadata and controls

64 lines (49 loc) · 3.71 KB
title pg hardstorage repair manifest
description CLI reference for the pg hardstorage repair manifest command.
tags
cli
reference

pg_hardstorage repair manifest

Reconcile a manifest's primary + replica copies (recover whichever side is missing/corrupt)

Synopsis

Reconcile the two on-repo copies of a manifest. Whichever copy is good repairs the other:

  • corrupt/missing PRIMARY, good replica → primary re-fetched from the replica (the classic recovery direction).
  • missing/corrupt REPLICA, good primary → replica rebuilt from the primary, restoring cross-prefix corruption survivability when the commit-time replica write failed or the replica was deleted out-of-band (rebuilt_replica=true in the result).

If neither copy verifies, the manifest is unrecoverable and the backup it describes can no longer be restored.

pg_hardstorage repair manifest <deployment> <backup-id> [flags]

Options

      --force         overwrite the primary even when it's already valid (use sparingly)
  -h, --help          help for manifest
      --repo string   repository URL — must already exist (required)

Options inherited from parent commands

      --airgapped airgapped: strict                                                       refuse outbound endpoints (LLM providers, sinks, OTLP collectors) outside loopback / RFC1918 / explicit airgap.allowlist. Also enabled by PG_HARDSTORAGE_AIRGAPPED=1 or airgapped: strict in the config file.
  -c, --config string                                                                     path to config file (default: XDG/FHS lookup)
      --cpu-profile go tool pprof <path>                                                  write a pprof CPU profile to this path for the duration of the command (go tool pprof <path> to analyse). Off when empty.
      --mem-profile string                                                                write a pprof heap profile to this path at command exit. Off when empty.
      --no-color                                                                          disable ANSI color in text output
      --on-error-llm                                                                      on a structured-error failure, drop into the matching LLM helper skill (auto_on_error trigger). Also enabled by PG_HARDSTORAGE_ON_ERROR_LLM=1.
      --otel-endpoint string                                                              OpenTelemetry OTLP/HTTP endpoint (e.g. http://otel-collector:4318); empty disables tracing
      --otel-stdout                                                                       also export OpenTelemetry traces to stderr (useful for dev)
  -o, --output string                                                                     output format: text|json|ndjson|yaml|template|csv|markdown|html|tap|junit|pdf (default: text on TTY, json off-TTY)
      --profile-port go tool pprof http://127.0.0.1:6060/debug/pprof/profile?seconds=30   if non-zero, expose net/http/pprof on 127.0.0.1:<port> for live profiling of long-running commands (e.g. go tool pprof http://127.0.0.1:6060/debug/pprof/profile?seconds=30). Off when zero.
  -q, --quiet                                                                             suppress non-essential output
      --template string                                                                   Go text/template applied when --output template (or implied if --template is set without --output)

SEE ALSO