psql -h localhost -U listmonk -d listmonk < listmonk-backup.sql

Category: Listmonk & Newsletters

psql -h localhost -U listmonk -d listmonk < listmonk-backup.sql

Restore a listmonk backup from a SQL dump

Feeds the plain-format dump produced by pg_dump back into the database, recreating schema and data. The database must exist and the target should be empty, otherwise you will hit duplicate-key errors. Stop the listmonk app during the restore so it does not write concurrently.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.