Has anyone considered potentially building a Lemmy community migration bot to simplify instance transitions?
from Teknevra@lemmy.world to fediverse@lemmy.ml on 06 Jun 12:48
https://lemmy.world/post/30915006

Given that Lemmy currently has no native support for migrating communities if an instance shuts down or becomes unstable, I’ve been wondering:


Has anyone thought about creating a bot that helps with this process?

The basic idea: when a migration is needed, one or more mods could create a new community on the target instance (setting up rules, banner, header, etc.), and then the bot would clone the old community’s content — posts, comments, etc. — and repost them to the new community (all with the community’s support, ideally preserving authorship, or noting who posted what).

To be respectful of users, there could even be an option to exclude posts/comments from users who don’t want to be included in the migration.

This kind of tool could dramatically reduce the time and effort needed to manually recreate communities and save valuable content from being lost.

I’d love to attempt this myself, but unfortunately I lack the time, technical know-how, and energy.

Has anything like this already been attempted, or is anyone working on a tool like this?

Curious to hear your thoughts — feasibility, technical hurdles, privacy concerns, etc.

#fediverse

threaded - newest

AbouBenAdhem@lemmy.world on 06 Jun 13:09 next collapse

If there’s a new party willing to take over administration of the entire instance as-is, why not just transfer ownership of the original server?

narF@lemmy.ca on 06 Jun 13:29 next collapse

Maybe that could be a next step for the new project Bounce? lemmy.ca/post/45530189

catloaf@lemm.ee on 06 Jun 13:54 next collapse

This would be better implemented as a function in Lemmy itself. A bot shouldn’t have the level of access necessary to do this.

nutomic@lemmy.ml on 06 Jun 16:03 collapse

We don’t have the capacity to implement all the features users ask for, at least not without additional contributors or waiting a long time. So it’s better to implement it as a bot.

The cleanest solution seems to be the one described in my previous comment, so you get an archived community with all the original content, correct usernames etc. And make a new community for new posts. Or have the bot create new posts and comments with the same content, and credit the author in markdown body. But that seems like a worse solution in many ways.

iso@lemy.lol on 06 Jun 14:06 next collapse

Better proposal: portable objects.

Teknevra@lemmy.world on 06 Jun 14:33 collapse

@iso@lemmy.lol

It says that the link is invalid

iso@lemy.lol on 06 Jun 14:45 collapse

codeberg.org/fediverse/fep/src/…/fep-ef61.md

You can also search “fep-ef61”

asudox@lemmy.asudox.dev on 06 Jun 14:09 next collapse

I’ve thought about how to implement it in Lemmy, but as @iso@lemy.lol said, DIDs simplify the whole process.

scott@loves.tech on 06 Jun 14:14 next collapse

One possible option is an export and import. The downside to this is that the files could get quite large, especially with busy communities. You can also sync between servers, where the server transfers over the files instead of a download / upload scenario.

If you combine this with the portal objects that @iso mentioned, servers that support portable objects would be able to tell that they are the same object just in a different location.

Microw@lemm.ee on 06 Jun 14:21 next collapse

Numatic shared the code you’d need to do most of this in another thread. So it should not be that hard to implement it in lemmy proper.

Blaze@lemmy.dbzer0.com on 08 Jun 19:31 collapse

lemmy.dbzer0.com/post/45876780