Opened 8 weeks ago
#3688 new feature request
Importers: Add Discourse backup importer.
| Reported by: | johnjamesjacoby | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8 |
| Component: | API - Importers | Version: | trunk |
| Severity: | normal | Keywords: | needs-patch |
| Cc: |
Description
Add support for importing a Discourse site from its official administrator backup.
Discourse produces a PostgreSQL database backup (.sql.gz), with uploads optionally supplied in a .tar.gz archive. The importer should extract the relevant users, categories, topics, posts, relationships, dates, and attachments into bbPress while preserving source IDs for deterministic reruns and relationship mapping.
Implementation should prefer a reusable extraction/staging adapter for non-MySQL sources, then use the existing bbPress conversion pipeline. Existing converter APIs and SQL-based importers should remain compatible.
Acceptance criteria:
- Import the official Discourse database backup format without requiring a live Discourse installation.
- Map categories to forums, topics to topics, and posts to replies, preserving authorship and timestamps where possible.
- Create or match WordPress users without attempting to migrate passwords.
- Handle deleted, hidden, anonymous, and system-owned content predictably.
- Support attachments/uploads when the archive is available, and report missing uploads without aborting the content import.
- Include fixture-driven regression tests and document the supported Discourse export format and limitations.
References:
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)