walwarden
GuidesConnect a database

Connect Neon

Register a Neon Postgres database for scheduled backups to your own S3 bucket.

This guide: connect a Neon Postgres database so walwarden can run scheduled logical backups into a destination you own. Neon is a shipping provider.

Prerequisites

  • A configured, preflight-verified destination — see BYO AWS S3 or the destinations overview.
  • A Neon project with a Postgres database and a branch you want to protect.
  • A database role with SELECT on the tables you want to back up. Superuser is not required.

Step 1: Get the connection string

In the Neon console, open your project, select the branch and database, and copy the connection string. Use the direct (unpooled) connection string so pg_dump gets a direct session:

postgresql://<role>:<password>@<endpoint>.neon.tech/<database>?sslmode=require

Step 2: Add the protected database

  1. In the walwarden dashboard, click Protected databases → Add database.
  2. Enter:
    • Name — a label for your reference (for example, neon-main)
    • DSN — the direct connection string from step 1, including the password. It is stored encrypted and never returned to the browser.
    • Destination — select your verified destination.
  3. Click Save. Walwarden validates that it can reach the database and that the role has the permissions pg_dump needs.

Step 3: Set a schedule

On the database detail page, set a cron schedule (see Scheduled backups). The first backup runs at the next tick; you can also trigger one ad-hoc.

Verify it worked

The Backup history table shows a completed row with a signed manifest hash, and the dashboard shows an RPO figure for this database. That confirms the backup ran and landed in your bucket. To prove recoverability, run a restore drill.

Neon restore note

On the first restore to a Neon target, use new_database mode; for repeat restores to the same target, use --created-database or in_place mode. See Restore modes for the Neon specifics.