Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Import Export

This document covers the backup and restore workflow for serialized configuration files.

Purpose

Import and export support makes it easier to:

  • back up a working configuration
  • move configuration between environments
  • restore a known-good configuration after rebuilds or failures

Workflow

flowchart LR
    ACTIVE[Active config] --> EXPORT[Export or backup]
    EXPORT --> FILE[Saved .pc or JSON artifact]
    FILE --> IMPORT[Import or restore]
    IMPORT --> TARGET[Recovered or reused config]

Typical use cases

Use caseResult
Backup before infrastructure changesRoll back to a known-good config
Promote config between environmentsReuse the same config shape in staging or production
Recover after file lossRestore from a saved artifact

Guidance

  • Keep backups versioned and named clearly.
  • Treat exported artifacts as sensitive if they contain provider or environment details.
  • Validate imported configuration before using it in production automation.