Migrate topics from one discourse instance to another?

AI-generated summary

The discussion revolves around migrating selected topics from one Discourse instance to another. Matthew_Gaudet seeks advice on moving specific topics from an older instance to a new one. codinghorror mentions that @neil has code for this, but it currently works by category rather than individual topics. Falco shares a relevant meta-discourse link for topic and category export/import. neil clarifies that topics can be exported by ID using a command like script/discourse export_topics 25 29. Matthew_Gaudet expresses appreciation and plans to test the solution.

We want to roll out a new Discourse instance for a larger group of users. We’re considering deprecating our older install, however I’m wondering if it would be possible to migrate selected topics from the old instance to the new instance.

Any advice on this?

@neil has code that can do that by category not individual topic. Probably best to make sure all the stuff you want to move is in distinct categories.

Colour me intrigued :smiley:

That’s definitely something we could probably arrange to have happen. Does this code have a home for poking at?

(PS: thanks so much)

You can export a list of topics instead of an entire category. See that topic that @falco linked to.

RAILS_ENV=production bundle exec script/discourse export_topics 25 29

It takes a list of topic id’s.

Awesome. Thanks so much. This looks like exactly what I want.

I’ll report back on any feedback if I have any once I’ve had the opportunity to use it!