Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 3.23 KB

File metadata and controls

58 lines (45 loc) · 3.23 KB
title pg hardstorage compat translate
description CLI reference for the pg hardstorage compat translate command.
tags
cli
reference

pg_hardstorage compat translate

Convert a legacy config to pg_hardstorage.yaml

Synopsis

translate reads a legacy backup-tool config file (today: pgBackRest's pgbackrest.conf, Barman's barman.conf, or a WAL-G env file) and writes the equivalent pg_hardstorage.yaml. Every setting that doesn't have a direct semantic equivalent is emitted as a YAML comment with a stderr summary so the operator can review.

pg_hardstorage compat translate --from <tool> <config-path> [flags]

Options

      --force           overwrite an existing output file
      --from string     source tool: pgbackrest|barman|walg (required)
  -h, --help            help for translate
      --output string   output file path (default: stdout)

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)
      --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