listmonk backup and restore

Back up the PostgreSQL database, runtime configuration and separately stored uploads.

Last updated

On this page (5)

listmonk · Backup and restore

Before you start

  • Compatible listmonk and PostgreSQL versions.
  • Effective LISTMONK_* variables or config.toml.
  • Separate test media storage and no route to production SMTP.

Procedure

  1. Pause app writes and campaign execution; run pg_dump -Fc -f listmonk.dump listmonk with the source connection.
  2. Archive the Compose deployment and environment or config.toml. If configured for filesystem media, capture the host directory backing /listmonk/uploads (or the admin-configured replacement); capture external media storage separately.
  3. Run pg_restore --exit-on-error -d listmonk_test listmonk.dump in a fresh database with matching roles. Reconnect test storage and start the same listmonk version against the restored database with outbound delivery blocked.

Verify the result

  • Compare a known list’s subscriber count and inspect a campaign preview containing a restored image.
  • Confirm no live email delivery is possible even if a restored campaign is queued.

Official documentation

Have Pilae operate listmonk

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.