pg_dump -h localhost -U listmonk -Fc listmonk > listmonk-backup.dump

Category: Listmonk & Newsletters

pg_dump -h localhost -U listmonk -Fc listmonk > listmonk-backup.dump

Back up listmonk in compressed custom format

The -Fc custom format compresses the dump, preserves object metadata, and supports selective restore with pg_restore. Restore with `pg_restore -h localhost -U listmonk -d listmonk listmonk-backup.dump`. Pair it with a rotation scheme since nightly backups accumulate.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.