vibepg dump
Synopsis
bash
vibepg dump <name> [--format custom|plain|directory|tar] [--output <path|->] [--schema-only|--data-only]Description
Run pg_dump inside the container and write the result to a file or stdout. Defaults match the most common case: a binary archive that pairs cleanly with restore.
Arguments
| Name | Required | Description |
|---|---|---|
name | yes | Instance name |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--format | enum | custom | One of custom (-Fc), plain (-Fp), directory (-Fd), tar (-Ft) |
--output | string | - | Output path. - means stdout. |
--schema-only | bool | false | Skip data; dump only schema |
--data-only | bool | false | Skip schema; dump only data |
--schema-only and --data-only are mutually exclusive.
Examples
bash
# Default custom-format archive to a file
vibepg dump demo --output backup.dump
# Plain SQL to stdout (handy with version control)
vibepg dump demo --format plain --output - > backup.sql
# Schema only, plain SQL
vibepg dump demo --schema-only --format plain --output schema.sql
# Data only, custom format
vibepg dump demo --data-only --output data.dumpNotes
pg_dumpruns inside the container, so the version always matches your instance — no host-side compatibility headaches.- For
directoryformat,--outputshould be a non-existing directory path. - Custom-format dumps support parallel restore with
vibepg restore --jobs <n>.