Skip to main content

px pxb export

Export px-backup resources

note

The following commands support a set of global flags that apply to all px pxb commands. For details, see the Global Flags section.

px pxb export config

Export the current PX-Backup configuration to a YAML file.

By default, sensitive authentication tokens are redacted for security. Use --include-tokens to export tokens (not recommended for sharing).

Examples:

# Export config to a file (tokens redacted by default)
pxb export config --file config-backup.yaml

# Export config to stdout
pxb export config

# Export config with tokens (use with caution)
pxb export config --file config-backup.yaml --include-tokens

Flags

FlagInput typeDescriptionDefaultRequired
--authtokenstringoidc auth token-Optional
--dry-runboolSimulate the operation without making any changesfalseOptional
--endpoint, -estringThe endpoint of the server-Optional
--file, -fstringOutput file path (default: stdout)-Optional
--include-tokensboolInclude sensitive authentication tokens in export (not recommended)falseOptional
--labels, -lstringComma separated list of labels as key-value pairs: 'k1=v1,k2=v2'-Optional
--orgIDstringThe org id for which to query the objectdefaultOptional
--output, -ostringOutput format. One of: table|json|yaml|nametableOptional
--tls-certificatestringtls certificate-Optional