this post was submitted on 17 Jun 2023
58 points (98.3% liked)

Lemmy

2172 readers
14 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to [email protected].

founded 4 years ago
MODERATORS
 

I've created a quick script to copy your communities from one account to another. Useful when switching instances.

top 13 comments
sorted by: hot top controversial new old
[–] nieceandtows 5 points 1 year ago (1 children)

Thanks for this. I need a tool to copy subscriptions over to a different account. Is there something like that?

[–] [email protected] 8 points 1 year ago* (last edited 1 year ago) (1 children)

I'm not sure what you mean, that's what this tool does. It will login to your main account, get a list of all your subscribed communities and subscribe to them on a new account on any instance that you specify.

[–] nieceandtows 2 points 1 year ago

doh, sorry I thought it copies contents of communities across. Thanks for this, much appreciated!

[–] [email protected] 3 points 1 year ago

I was just thinking about doing something like to migrate some of my communities over (and was even planning on writing it in Python). Just ran it and it worked perfectly. Thank you, this saved me a bunch of time!

[–] [email protected] 3 points 1 year ago (1 children)

Thanks! I made a backup Lemmy account (for if my main instance went down or had other issues) so the idea of being able to easily move communities over is great.

[–] [email protected] 1 points 1 year ago

This is exactly what I was hoping for! I’ve created a few subtext@‘s to try out the different servers and would love to be able to sync my subscriptions.

[–] kratoz29 1 points 1 year ago

I have two accounts in two different instances, in the past of the days I've added lots of communities in both of them, but both are very similar, will this script override one to another like copying files from one folder to another or how does this works exactly?

My goal is to have them synced, so I'd copy from A) to B) and then B) to A) to have the same amount of communities, BTW, is there any way to know the exact number of how many communities I'm subscribed to?

[–] [email protected] 1 points 1 year ago

Great, thank you.

[–] [email protected] 1 points 1 year ago

Thanks for this!

[–] colifloro 1 points 1 year ago (2 children)

I just tried and It works great! may I suggest to accept multiple destination accounts? perhaps with a config file, instead of a parameter? that way can be also possible to automate synchronizing the accounts that in multiple instances. Thanks for all the work.

[–] [email protected] 2 points 1 year ago (1 children)

The code is now controlled by a config file that allows multiple accounts to sync.

[–] colifloro 1 points 1 year ago

great improvement!! thanks!

[–] [email protected] 2 points 1 year ago

I'll look into adding more options. I think I'm going to end up creating a full Lemmy API for python so that it can be used for a myriad of projects.

load more comments
view more: next ›