Jellyfin Forum
Migrate users - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Migrate users (/t-migrate-users)



Migrate users - Maxy TV - 2024-03-07

Hello everyone,

A while ago, I asked about how to save the created users from one Jellyfin instance to another when migrating.

Someone responded that I could retrieve the users from the database located at /var/lib/jellyfin/data/jellyfin.db.
I found the table where the users were stored and imported it into the new Jellyfin instance I installed, but it gave me an error.

I foresee that I will need to migrate my Jellyfin to another VPS again since it is now affordable for me but only for 1 year. When the year ends, I need to migrate to another host.
Personally, I don't have a problem with reinstalling and reconfiguring everything again, but something I cannot rescue would be the users. Does anyone know how I can migrate users? Is it possible to migrate the entire Jellyfin instance? The issue is that the location of the libraries might not exist at the time of migration to the new VPS.
Ideally, I would only migrate the users, and optionally the watched or in-progress content.

Could anyone help me, please?

Thank you very much.


RE: Migrate users - niels - 2024-03-07

You can't just copy over the user table as Jellyfin also stores metadata for each user on the filesystem.


RE: Migrate users - Maxy TV - 2024-03-08

So, do you suggest that I should also migrate the users' metadata? Where can I find that in order to properly migrate the users?


RE: Migrate users - niels - 2024-03-08

No I suggest to not copy over users because there is no good way to do that


RE: Migrate users - TheDreadPirate - 2024-03-08

When I had to restore my Jellyfin after a hardware failure, I copied and pasted the entire /var/lib/jellyfin and /etc/jellyfin folders onto the new system from my daily backup. Jellyfin booted up as if nothing happened. I would have dig in to figure out which files, specifically, contain just the users. But restoring both of those folders is sufficient to restore everything.