Skip to content

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 ​

NameRequiredDescription
nameyesInstance name

Options ​

FlagTypeDefaultDescription
--formatenumcustomOne of custom (-Fc), plain (-Fp), directory (-Fd), tar (-Ft)
--outputstring-Output path. - means stdout.
--schema-onlyboolfalseSkip data; dump only schema
--data-onlyboolfalseSkip 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.dump

Notes ​

  • pg_dump runs inside the container, so the version always matches your instance — no host-side compatibility headaches.
  • For directory format, --output should be a non-existing directory path.
  • Custom-format dumps support parallel restore with vibepg restore --jobs <n>.

See also ​

Released under the MIT License.