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

  1. Quiesce application and worker writes and run pg_dump -U postgres -W -F t chatwoot_production > chatwoot.tar with the actual connection details.
  2. Archive the application-root storage directory for local storage, or back up the applicable S3/GCS objects. Preserve .env or equivalent secret refs and any code customizations.
  3. Provision the same version; run pg_restore --exit-on-error -d chatwoot_test chatwoot.tar against 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.

Official documentation

Have Pilae operate Chatwoot

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