After my lovely adventure moving from FreeNAS to unRAID I tried to figure this out and ended up spending about a 100 years trying to accomplish it! I wasn’t as competent with Linux back then as I am now (and I’ve still got a ways to go!) But with the help of a friendly redditer, I got it figured out in the end. Thanks /u/m3ki
So, I have all of my media on unRAID. (So my Films and TV episodes all reside on user shares accessible via SMB / Samba / CIFS) And, as I said here in my trip from FreeNAS to unRAID, I had 2 separate servers. 1 for Plex and 1 for my NAS, which was a complete waste TBH!
I’d heard of unRAID users using various plugins and ‘Dockers’ and this all seemed very nice to me but I continued using Windows because I didn’t want to fix what wasn’t broken (Boy… If only I always thought like that 😉 I rarely leave anything alone just because it’s “working” everything can be improved with some healthy tinkering! And when I mess up? Well then I’ve learned how not to do something)
“I didn’t fail, I found 2,000 ways how not to make a light bulb” Thomas A. Edison
Of course, my first port of call was to see if somebody else had tried doing this before. Could I find even an attempt? – Nope
Ahh, it’ll be on the FAQ! – Nope (Not in anywhere close to enough detail to be of use to anybody…)
I’d had Plex up and running for ages, starting again and losing every single scrap of metadata, every bit of watch history, all the custom names, posters and ratings… I just couldn’t chuck it all away just to move to a more efficient way of running PMS.
So here’s what I did:
I checked out the FAQ here – It’s certainly helpful! But not close to a step-by-step unfortunately, but that’s why I’m here. Ensure you disable the emptying of trash before you do ANYTHING involving moving your userdata.
You need to locate your PMS appdata, on Windows it’s here:
Step 1
Take that gigantic folder and .zip it up, or .7z *insert archive format of choice* – Because moving potentially thousands of titchy tiny files is going to take a decade! – Then copy it somewhere to your unRAID machine. I named mine plex.zip and just sent it over to \\Raptor\Other
Step 2
Setup a user share on unRAID (if you’re using unRAID 6.2 it’ll be done for you!) but mine’s called appdata and it’s located here:
Step 3
Time to set up docker, there are guides on this already, so I won’t re-invent the wheel. Just Google “Setup docker on unRAID” and you’ll have posts, guides and videos to help.
Install the Community Applications plugin and search for Plex. Scroll down the list and ‘add’ the version made by Linux Server IO. This is very important as it’s the best, smallest and most well maintained version of Plex on Docker 🙂 With almost 1 million users at this time!
You’ll have to set up some mappings for your media and config. Example Imgur
Let it start-up, set it up as normal. Then shutdown the Docker container from the unRAID GUI.
*Just another warning – make sure if you do start Docker… disable emptying of the trash… until you map all of the media folders otherwise it will have to re-download all metadata..
Step 4
Open an SSH session to your NAS and move your plex.zip to:
If you’re unfamiliar with SSH and Linux, don’t worry 🙂
Just type:
This will result in your .zip file being in the appdata folder in your Cache.
Step 5
Unzip! (Your plex.zip)
Step 6
Set the correct permissions
Step 7
Start your docker again! Hopefully it’s worked for you! If all of your Play history and media shows up, you’re golden.
– Marcus