Hello TrueNAS community,
I've been trying to migrate my Plex Media Server from a Windows setup to TrueNAS SCALE's Plex plugin. My main goal is to maintain all the metadata from the original Plex setup as I have many movies that were manually matched or have custom metadata.
Original Setup:
Despite these steps, when I launch plex I am still asked to add the library's manually and then Plex scans my libraries on TrueNAS, it doesn't retain the metadata from the original server, and I have to manually match a lot of content.
I'd appreciate any advice or steps I might have missed during this migration or if there is just a completely different way to go about it, or if I should be using a differnt OS instead of TrueNAS Scale.
Thank you in advance for your insights!
I've been trying to migrate my Plex Media Server from a Windows setup to TrueNAS SCALE's Plex plugin. My main goal is to maintain all the metadata from the original Plex setup as I have many movies that were manually matched or have custom metadata.
Original Setup:
- Plex Media Server running on Windows.
- Media paths:
- Movies: M:\Plex Server\Plex Content\Movies
- TV Shows: M:\Plex Server\Plex Content\TV Shows
- Plex installed as a plugin.
- Media paths:
- Movies: /mnt/TrueNAS/Media/Plex Content/Movies
- TV Shows: /mnt/TrueNAS/Media/Plex Content/TV Shows
- Backup & Restore: Initially, I tried a simple backup and restore approach:
- Backed up the entire "Plex Media Server" folder from the Windows machine.
- Restored this backup to the corresponding location on TrueNAS at /mnt/TrueNAS/plex/config/. This directory was also set as the Plex configuration directory during the Plex app setup in TrueNAS SCALE.
- Updated the library paths in Plex.
- SQLite Database Modification: To address path discrepancies between the two setups, I accessed the Plex SQLite database and modified the paths:
- Used SQLite on my Windows machine to change the paths in the com.plexapp.plugins.library.db file from the Windows format to the TrueNAS format.
- Queries executed:
- UPDATE media_parts SET file = replace(file, 'M:\Plex Server', '/Media');
UPDATE section_locations SET root_path = replace(root_path, 'M:\Plex Server', '/Media');
- Permissions: To ensure that Plex had the right permissions to access the restored metadata, we set broad permissions using chmod -R 777 for the Plex directories.
Despite these steps, when I launch plex I am still asked to add the library's manually and then Plex scans my libraries on TrueNAS, it doesn't retain the metadata from the original server, and I have to manually match a lot of content.
I'd appreciate any advice or steps I might have missed during this migration or if there is just a completely different way to go about it, or if I should be using a differnt OS instead of TrueNAS Scale.
Thank you in advance for your insights!