this post was submitted on 03 Jun 2024
19 points (95.2% liked)

Lemmy

12641 readers
11 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 host my own Lemmy instance and have a user account on it that I use everywhere (I don't host local communities, I just use it as a home for my Lemmy user account). I needed to re-home my Lemmy server, and though it's a docker installation, copying the /var/lib/docker/volumes/lemmy_* directories to the new installation didn't work. So I created a new Lemmy server.

How can I move my old account to the new server, so I can keep all my subscriptions and post/comment history?

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 7 months ago

The correct way (for your use case) is probably to do a full backup of the database and pictrs database and then import them into the new instance.

This is covered in the documentation

[–] [email protected] 9 points 7 months ago (1 children)

In the user settings there's an option to export everything to a file, then you just import that file into your other account

[–] [email protected] 5 points 7 months ago

That only exports settings (general account config, saved posts and comments, blocked users, communities, and instances, etc.). That won't export all of the user's own posts and comments.

[–] [email protected] 1 points 7 months ago

You can't keep your comment history on a brand new account.

Aren't the Lemmy volumes bind mounts, so not in the docker volumes folder but instead on the file system as mapped in the docker-compose.yml file?