Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dbdock.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Prerequisites

Node.js 18+

DBdock requires Node.js 18 or later.

PostgreSQL client tools

pg_dump, pg_restore, and psql must be on your PATH.

Install PostgreSQL client tools

brew install postgresql
sudo apt-get update
sudo apt-get install postgresql-client
sudo dnf install postgresql
Download the installer from the PostgreSQL downloads page. Select only the “Command Line Tools” component if you don’t need the full server.
Verify the tools are available:
pg_dump --version
pg_restore --version
psql --version

Install DBdock

Always uses the latest published version. Best for one-off tasks.
npx dbdock --help

Permission errors

If npm install -g fails with EACCES:
The recommended fix is to point npm at a directory you own:
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
npm install -g dbdock
Only if you understand the implications:
sudo npm install -g dbdock

Next steps

Quickstart

Run your first backup in 5 minutes.

Concepts

Understand how DBdock thinks about backups.