Moving the plex database to a new drive

Hello, i’d like to move the plex database and it’s stored metadata to a different drive?
How would one go about this!
I will run out of room soon on the drive i’m on for the database.
it is stored in “C:\users\name\appdata\local\plex media server”
if i move it to “D:\users\name\appdata\local\plex media server”
I believe plex is not smart enough to notice the move. is there any values i need to change in the registry to make this happen?

Server Version 1.19.1.2645
Player Version 4.31.1:

From https://support.plex.tv/articles/202529153-why-is-my-plex-media-server-directory-so-large/

Relocate your Plex Media Server Data Directory

If the underlying issue is that you’re running out of space on a small boot drive, for instance, then the easiest solution is often simply to relocate the Plex Media Server data directory.

Tip! : When relocating the data directory, you should make sure you do so to an internal drive on your computer (hard drive or SSD). Moving to a network location can result in poor, unexpected, or even completely broken behavior.

Windows

For Windows installations, you can make use of the The Path where Local Application Data is Stored general server setting. Refer to information about that setting for details.

Related Page : General

From https://support.plex.tv/articles/200289496-general/

Windows Specific Settings

The path where local application data is stored

You can set the location where your Plex Media Server data directory is located. This is the path to the directory containing the Plex Media Server folder.

Note : Altering this setting will not move the data for you. You will need to ensure the data is in the desired location yourself.

Warning! : You should not specify a location that resides on a network share/disk.

Related Page : Where is the Plex Media Server data directory located?

In short… this should do the trick:

  1. stop the Plex Media Server (step 1 seems redundant… I just like to be cautious and avoid copying data while Plex is writing in its folder)
  2. copy the local data folder (default: C:\Users\<your user name>\LocalAppData\Plex Media Server\)
  3. start the Plex Media Server
  4. enter the path where you moved your Plex data folder into Settings > Server > General > The path where local application data is stored
  5. restart your Plex Media Server
1 Like

Thanks tom80H

Maybe to be 100% sure things worked:

  1. confirm Plex is actually pointing to the new path in RegEdit:
    HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server\LocalAppDataPath
  2. remove the old app data folder
1 Like

Thanks tom80H This tom, this will help me alot.

Thanks the how to worked. used regedit to verify.

Same HowTo, with some additional precautions and tips: Moving Metadata on Windows

1 Like

Hi, i don’t think this info is valid anymore, i don’t have the option in Version 1.19.3.2843,
I have been moving the db for years to another bigger SSD,
can’t change settings in Version 1.19.3.2764 also.

I reinstalled Windows a month ago and had to reinstall over the weekend,
That option was there last time i installed.

I had to remove the folder “Plex Media Server” create a symlink to it in CMD open as Administrator
.
mklink /J “C:\Users\USER\AppData\Local\Plex Media Server” "K:\AppData\Plex Media Server"

2 Likes

That’s correct. The option in the settings of Plex is gone for security reasons.
You can still adjust the setting in the Registry of your Windows machine (same setting, same process… just a less convenient way of editing it).

The officially supported method is documented here: [HowTo] An extended guide on how to move the Plex data folder on Windows

Thanks for the help, i got it working with the Regedit earlier.
The Symlink also works pretty good, didn’t see any problems while i was using it.

The Data file for Plex is indeed taking too much space on C: and relocating this is a feature that Plex should have implemented from the start.
You should not move the Plex Data to an external drive or to a network, but if you have more space on let’s say D: then I strongly suggest you take a look at https://www.sevenforums.com/tutorials/278262-mklink-create-use-links-windows.html

It works for Spotify too, who already took about 10G on my C drive, where Plex consumed about 24G.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.