See Casnode in production: Casbin Forum, with hundreds of real questions about Casbin, Casdoor, OpenAgent and Casvisor. Visit →

We have about 3,000 topics on a self-hosted Discourse. Moving would be much easier with an importer. Is anyone working on one?

10views
2users
1 minread

There's a general importer now, tools/import_topics. It reads an import.json with categories, users and topics (each post with its author, time and files in a media/ folder) and brings them in with their original authors and times, without notifying anyone:

go run ./tools/import_topics <dir>          # shows what it would do
go run ./tools/import_topics -apply <dir>   # does it

Run it in the forum's folder so it uses the forum's database and uploads. Every user and topic carries an externalId, so running it again skips what was already imported.

There's no ready-made converter for Discourse yet: you'd write a small script that turns Discourse's data into that import.json. The format is described at the top of tools/import_topics/main.go.

1 / 2
Oct 27