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?

  • Nutomic@lemmy.ml
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    19 days ago

    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
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      18 days 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.