Transfer PMS Libraries from Windows 11 to Ubuntu 22.04

I am pretty new to Ubuntu, but I was able to transfer my Windows 11 PMS libraries to an Ubuntu 22.04 PMS server after some trial and error. I started with the instructions here: How to transfer Plex library from Windows to Linux?

But I had to do it a bit differently, so I thought I’d share what worked for me:

  1. Create the necessary directory on the Ubuntu system and change permissions to enable copying files from the Windows system:
    sudo mkdir /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/
    sudo chmod 777 Plex\ Media\ Server
  2. Share the folder you just created with the Windows system. I used Samba.
  3. On the Windows system, from the folder %LOCALAPPDATA%\Plex Media Server, copy the following folders to the share created in step two. It can take a while to copy.
  • Media
  • Metadata
  • Plug-in Support
  • Plug-ins
  1. Install Plex on Ubuntu, but don’t do anything with libraries yet - I followed this guide: https://www.howtogeek.com/install-plex-media-server-on-ubuntu/
  2. Shutdown plex:
    sudo systemctl stop plexmediaserver.service
  3. Change the owner and permissions of the folder created in step 1:
    sudo chown -R plex:plex Plex\ Media\ Server
    sudo chmod 755 Plex\ Media\ Server
  4. Start plex:
    sudo systemctl start plexmediaserver.service
  5. I added the new paths to the libraries before removing the old paths.
  6. Adding the new paths kicked off library scans\analysis that lasted quite awhile.
  7. After the library scans are done, remove the old Windows library paths
  8. Share your libraries with your friends/Plex Home users.

This preserved the play history of all users, current place in tv show seasons, current place in partially played shows/movies, collections, artwork, and labels. There is probably more that was kept, as well.

There’s also always the guide by Chuck in the Linux tips here in the forum…

That looks pretty close to what I did, thanks for sharing!

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