Migrate database from macOS to FreeNAS

Server Version: lastest
Player Version: lastest
All app mentioned is up to date.

Hi!

I would migrate my Plex Media Server database from my Mac to FreeNAS.

I tried to copy-paste the “Plex Media Server” folder from my Mac to FreeNAS, but when I start the new server, I can’t connect to it (server not find).

After, I tried to only copy-paste “com.plexapp.plugins.library.db” but the same problem.

Anyone have an idea to migrate from macOS to FreeNAS a database?

Thanks!

Did you try connecting to the new install before you tried moving the info over from the old one? Possible it’s not working to begin with.

You should install the new system and make sure it’s working before trying to transplant a setup from another machine. Also, it not always possible to move the entire setup between two different OS’s

Yes, I tried and PMS worked.

Can you post exactly what you copied (full paths) form on place to the other? And was PMS stopped on destination when you did this?

Note: macOS uses defaults not Preferences.xml so you might need to apply some settings later via the UI. You can use defaults read com.plexapp.plexmediaserver to get an idea what was there before.

First try:

copy /Users/Vallevert/Library/Application Support/Plex Media Server
paste the full PMS folder here: /Volumes/App/jails/Plex/root (replace the existing not used PMS folder)

Second try:
copy only /Users/Vallevert/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db
paste here /Volumes/App/jails/Plex/root/Plex Media Server/Plug-in Support/Databases

PMS was stopped when I copy-paste files.

I don’t need to transfer Preferences.xml because it’s not mandatory for me.

Its not the first person that mentions this is the path for the plex data on the plugin… that is horrible IMHO, it should be in /usr/local/plexdata or similar, but in any case if that’s the actually path it should be using (you can confirm if you cat /etc/rc.conf| grep plex in the jail shell) it should work!

But you can’t just copy over you need to make sure permissions and ownership are correct.

So 1st things 1st… open a shell IN THE JAIL (not the host);

cat /etc/rc.conf | grep plex (there should be a plexmediaserver_support_path setting) make sure it does point to /Plex Media Server`

If so now do:
chown -R plex:plex /Plex\ Media\ Server

Unfortunately this is becoming far too complicated for me.

Thank for your help.

Hi Mike,

I’m trying to achieve the exact same move as OC, having followed your steps in this post, my plexmediaserver_support_path is "/" not "/Plex Media Server" as you suggested it should? Does this matter? Or should I just be able to give permissions to plex using chown -R plex:plex /Plex\ Media\ Server?

If the plexmediaserver_support_path does indeed matter, how do I go about editing it?

Edit: I accidentally omitted that I am using the Plex Pass plugin, so I’m actually referring to plexmediaserver_plexpass_support_path

Update

I used vim to edit my plexmediaserver_plexpass_support_path in /etc/rc.conf from "/" to "/Plex Media Server".

I then used chown -R plex:plex /Plex\ Media\ Server to give plex permissions of the my copied over Plex Media Server directory.

The server started up no problem! Which is the most progress I’ve made so far.

Sadly, this PMS instance looked as if it was completely fresh, it didn’t know about my libraries, my watch history, nothing.

Is it possible I need to adopt the PMS instance to my account BEFORE moving across any databases? I’m really at a loss as to how to make this work

Another update, I tried the exact same procedure as above, except this time I adopted the server into my plex account before moving any database across. After completing all the above steps and starting the server, it wanted to be adopted to an account, as if it was if it was completely fresh install

@mikec_pt, I really hope you have some insight as to how I can get this to work

So to clarify the Plex Media Server dir is created by PMS so if rc.conf points to “/” that would match /Plex Media Server!

So you just need to place “Plex Media Server” dir on the jail root it seems!

The chown command still applies (-R changes the ownership for all inner dirs)

Thanks so much for getting back to me! I am finally up and running, and everything important appears to be intact! I ended up going with a FreeBSD jail instead of the plugin jail, mainly to get more regular updates, but all it took was chown plex:plex from within the jail shell.

Thank you for your support, @mikec_pt!

1 Like

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