this post was submitted on 06 Jul 2023
2 points (100.0% liked)
Lemmy
12514 readers
44 users here now
Everything about Lemmy; bugs, gripes, praises, and advocacy.
For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I did exactly this today. I wrote a quick and dirty Python script to fetch followed communities from lemmy.ml and to follow those same communities on lemmy.sdf.org (the current instance I'm using).
That's awesome. Are you planning on giving it out publicly?
I think I remember reading about an existing project which aims to allow migration of followed communities, users, blocks, etc. between instances. I'd imagine that would be far cleaner than my quick solution so it might be worth a look!
I'll try cleaning mine up though and I'll post it here just in case it's useful.
Here's my Python script, it requires Python 3 and requests: -
You use it like this (for example), assuming it's saved to
sync.py
: -python sync.py --source-url=https://lemmy.ml --dest-url=https://lemmy.world --source-jwt=abc123 --dest-jwt=bcd234