Jellyfin Forum
Change media library paths - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: Change media library paths (/t-change-media-library-paths)



Change media library paths - nothingveryobvious - 2024-04-04

Hello, and sorry if this has been asked before but I can’t seem to find an answer on this forum.

I use Jellyfin in Docker and an external hard drive named “dimepiece” and have paths set up like this within the container:
- TV shows are in /dimepiece/tv-shows
- Movies are in /dimepiece/movies

If I move my media to a new hard drive, let’s call it “venti,” and want to change the paths within the container to avoid myself some confusion, I would want it to be like this:
- TV shows are in /venti/tv-shows
- Movies are in /venti/movies

Can I do this in Jellyfin without having to rescan each library and rebuild metadata? For now the only way I can think of is going to Libraries and changing the folder paths, but that would require a full rescan and rebuilding of metadata, wouldn’t it? Or am I wrong about this?

I know in Sonarr and Radarr it’s very easy to change the root folders. I’m looking for this type of solution, if possible.

Thank you for your help!


RE: Change media library paths - TheDreadPirate - 2024-04-04

When you are defining a volume in docker the right side of the colon can be anything you want. So if you move paths on the host (the left side of the colon), as long as the video folders are structured exactly the same you can move it anywhere on the host and Jellyfin in the container won't know that anything changed.


RE: Change media library paths - nothingveryobvious - 2024-04-17

@TheDreadPirate

Thank you, I’m aware of that.

But what if I want to change the name of a hard drive within the Jellyfin container itself? On the right side of volumes in docker-compose I have it set as “/media/hard-drive-name-1/tv-shows”. What if I want to change it to “/media/hard-drive-name-2/tv-shows”?

I don’t want to change the left side to “hard-drive-name-2” but keep the right side as “hard-drive-name-1” because it could be potentially confusing.

I would have to rescan the entire library and rebuild all the metadata right? There’s no way to just change the root folder within the Jellyfin container itself?


RE: Change media library paths - TheDreadPirate - 2024-04-18

You need to have the new folder in your library, even if it is currently empty, ahead of time if you want a clean cut over. But if this is for a whole you will have to think ahead a little.

You will have create the folder you are going to mount the hard drive to NOW and add it to your docker config, then add this folder to your library.

Stop Jellyfin, change where the hard drive is mounted, start Jellyfin. It SHOULD cut over cleanly and rescan everything but preserve metadata and watch status.

You can always backup /config just in case.