this post was submitted on 04 Jun 2025
25 points (100.0% liked)

[Closed] Moved to !fedigrow@lemmy.zip

1567 readers
1 users here now

This community has moved to !fedigrow@lemmy.zip

Original sidebar infoTo discuss how to grow and manage communities / magazines on Lemmy, Mbin, Piefed and Sublinks

Resources:

Megathreads:

Rules:

  1. Be respectful
  2. No bigotry

founded 1 year ago
MODERATORS
 

I have two lemm.ee communities and I very much want to keep the post history in one community for discover ability and archival purposes.

What tools and methods are available to transfer posts from one instance to another?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] nutomic@lemmy.ml 8 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

You can write a script for this:

# loop through all post
GET https://lemm.ee/api/v3/post/list?limit=50&sort=New&community_name=fedigrow&page=*page*
# take `post.ap_id` for each item
# then fetch it over activitypub on the other instance
GET https://lemmy.ml/api/v3/resolve_object?q=*urlencode post.ap_id*
# same thing for comments
GET https://lemm.ee/api/v3/comment/list?limit=50&sort=New&community_name=fedigrow&page=*page*
# again fetch
GET https://lemmy.ml/api/v3/resolve_object?q=*urlencode comment.ap_id*
[โ€“] asudox@lemmy.asudox.dev 3 points 2 weeks ago* (last edited 2 weeks ago)

~~Yeah but this would only make it available on that remote instance. OP wants to transfer the community to another instance along with its posts/comments.~~

edit: misunderstood. Ignore.