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
- Pause app writes and campaign execution; run
pg_dump -Fc -f listmonk.dump listmonkwith the source connection. - 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. - Run
pg_restore --exit-on-error -d listmonk_test listmonk.dumpin 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
- listmonk installation and configuration
- Official Compose file and upload mount
- PostgreSQL archive restoration
