Chatwoot backup and restore
Recover PostgreSQL and the corresponding Active Storage files without reconnecting live communication channels.
Last updated
On this page (5)
Chatwoot ยท Backup and restore
Before you start
- Matching Chatwoot release.
- Database and storage access.
- Isolated environment with outgoing mail, workers and channel integrations held back during setup.
Procedure
- Quiesce application and worker writes and run
pg_dump -U postgres -W -F t chatwoot_production > chatwoot.tarwith the actual connection details. - Archive the application-root
storagedirectory for local storage, or back up the applicable S3/GCS objects. Preserve.envor equivalent secret refs and any code customizations. - Provision the same version; run
pg_restore --exit-on-error -d chatwoot_test chatwoot.taragainst a fresh database with matching roles. Restore files to test storage and point the restored environment at that storage before starting the application.
Verify the result
- Open an existing conversation and download a historical attachment.
- Verify agent access and inbox configuration without sending messages or acknowledging production webhooks.
