Porting database from Windows Linux

Ok, I can give you the checklist.

Personally, I prefer to port the whole block because it will save time on the back end given that taking just the database already carries a lot of work due to the pathname changes.

the process is this:

  1. With Plex running, Settings - Server - Library - Show Advanced, Turn off all the automatic updating.

  2. Shut down Plex

  3. Sign out of Plex/web (upper right)

  4. Make a ZIP file of the “Plex Media Server” directory (where you see the Media and Metadata sub directories)

  5. Install Plex on the new machine

  6. Stop it

  7. In the terminal window, clean out the temporary it created.

sudo bash
cd "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server"
rm -rf *
  1. Unzip your file from windows there to take the place of what you just removed. The structure should be the same ( Media, Metadata, Plug-ins, etc should be right there in the “Plex Media Server” directory )

  2. Change the file permissions to match that of the username

chown -R plex:plex /var/lib/plexmediaserver
  1. Start it up

  2. Open the server url (it must be on your same subnet and you must use the IP) http://ip.addr.of.server:32400/web

  3. It will greet you with “Got it” (the EULA)

  4. It will also want you to sign in. Go ahead and do that

  5. The setup wizard will start

  6. Since you’re bringing the database with you, you can skip that part.

  7. Set the other options you like as you progress through the wizard until you arrive at the dashboard.

At the dashboard –

For each Library section you’ve defined.

  1. EDIT the section

  2. ADD the new media directory paths – which correspond to the old Windows paths)

  3. DO NOT remove the Windows paths yet. (They are keeping all the info in your database linked together.

  4. As you “OK” the addition of the new locations,
    a. it will start scanning.
    b. You’ll see either a “2” (duplicate) show
    -or-
    c. The “Unavailable” will go away (either one is acceptable)

  5. When all scanning is complete

  6. Advance to the next section and repeat steps 2-5 here.

  7. When you’ve completed adding the new locations, for each library section (again)
    a. EDIT the section again.
    b. REMOVE the old Windows directory paths.
    c. “OK”
    d. Observe it scan again and remove duplicate indicators

  8. When all sections are complete:
    a. Scan Files
    b. Empty Trash
    c. Clean Bundles
    d. Optimize Database

Your work is complete.

Feel free to ask if you have any questions.