> ## 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.

# DBDock Documentation

> DBDock is a database toolkit for PostgreSQL and MongoDB — backups, restores, database copies, and cross-database migrations. Use the open-source CLI, the managed cloud dashboard, or both, kept in sync.

DBDock handles the database chores you'd rather not write scripts for: **backups, restores, database copies, scheduling, and cross-database migrations** — with encryption, compression, and multi-cloud storage built in.

There are two ways to use it, and they work together:

<CardGroup cols={2}>
  <Card title="DBDock Cloud" icon="cloud" href="/cloud/overview">
    A hosted dashboard at [dbdock.xyz](https://dbdock.xyz). Connect a database, schedule encrypted backups, and manage everything from the browser — no infrastructure to run.
  </Card>

  <Card title="DBDock CLI" icon="terminal" href="/cli/overview">
    An open-source, MIT-licensed command-line tool. Run backups and migrations locally or in CI, from a single `dbdock` command.
  </Card>
</CardGroup>

<Note>
  **They're the same toolkit.** [Cloud Sync](/cloud-sync/overview) links a local CLI project to your cloud dashboard, so you can automate from the terminal and monitor from the browser. Only non-secret metadata leaves your machine — [see what syncs](/cloud-sync/data-handling).
</Note>

## Pick your path

<Steps>
  <Step title="Just want a dashboard?">
    Start with the [Cloud quickstart](/get-started/quickstart-cloud) — connect a database and take your first backup in the browser.
  </Step>

  <Step title="Prefer the terminal?">
    Start with the [CLI quickstart](/get-started/quickstart) — install `dbdock` and back up a database in one command.
  </Step>

  <Step title="Want both?">
    Do either quickstart, then run `dbdock login` and `dbdock sync` to [link the two](/cloud-sync/overview).
  </Step>
</Steps>

## What you can do

```bash theme={null}
npx dbdock backup                              # Encrypted, compressed backup
npx dbdock restore                             # Interactive point-in-time restore
npx dbdock copydb "src_url" "dst_url"          # Clone a database, zero config
npx dbdock migrate "mongo_url" "postgres_url"  # Cross-database migration
npx dbdock login && npx dbdock sync            # Link this project to the cloud
```

## Features at a glance

<CardGroup cols={2}>
  <Card title="Backups & restores" icon="shield-check" href="/cloud/backups">
    PostgreSQL and MongoDB backups with AES-256-GCM encryption and zstd compression. Restore interactively or automate it.
  </Card>

  <Card title="Database copies" icon="copy" href="/cli/copydb">
    Clone prod → staging → local with a single command. No dump files to babysit.
  </Card>

  <Card title="Cross-database migration" icon="arrows-left-right" href="/migration/overview">
    MongoDB ↔ PostgreSQL with automatic schema mapping, dry runs, and incremental syncs.
  </Card>

  <Card title="Scheduling" icon="calendar-days" href="/cloud/schedules">
    Cron-based schedules that run in the cloud or from the CLI — with retries and run history.
  </Card>

  <Card title="Multi-cloud storage" icon="database" href="/cloud/storage">
    DBDock managed storage, or bring your own: AWS S3, Cloudflare R2, Cloudinary, local disk.
  </Card>

  <Card title="Alerts" icon="bell" href="/alerts/overview">
    Email, Slack, and webhooks for backup success, failure, and schedule events.
  </Card>

  <Card title="Analytics & admin panels" icon="chart-line" href="/cloud/overview">
    Track database growth over time and build no-code admin dashboards from your data.
  </Card>

  <Card title="Security-first" icon="lock" href="/security/overview">
    Encryption by default, secrets kept in environment variables, and metadata-only cloud sync.
  </Card>
</CardGroup>

## Popular pages

<CardGroup cols={3}>
  <Card title="Cloud Sync" icon="cloud-arrow-up" href="/cloud-sync/overview">
    Link the CLI to your dashboard.
  </Card>

  <Card title="Security" icon="shield" href="/security/overview">
    How DBDock protects your data.
  </Card>

  <Card title="CLI Reference" icon="terminal" href="/cli/overview">
    Every command and flag.
  </Card>
</CardGroup>

## Get help

* [Dashboard](https://dbdock.xyz) — the DBDock Cloud web app
* [Troubleshooting](/help/troubleshooting) — common issues and fixes
* [FAQ](/help/faq) — quick answers
* [GitHub](https://github.com/dbdock/dbdock) — source, issues, and discussions
