Using this how-to from “Linux Tips”
we’re going to: ( I’ll write this out as copy/paste possible as I can for you )
- Stop PMS
- open bash terminal window and work from root:
$ sudo bash
# mkdir /mp1/share/plexmediaserver
# chown plex:plex /mp1/share/plexmediaserver
# cd "/var/lib/plexmediaserver/Library/Application Support"
# tar cf - . | (cd /mp1/share/plexmediaserver ; tar xf -)
# mkdir /etc/systemd/system/plexmediaserver.service.d
# cat > /etc/systemd/system/plexmediaserver.service.d/override.conf <<EOF
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mp1/share/plexmediaserver"
EOF
# cat /etc/systemd/system/plexmediaserver.service.d/override.conf
#
# NOTE: Confirm the contents of override.conf matches how shown in the Linux Tips
#
I’m stopping here so you can ask anything about what we’re doing.
- Stop Plex
- Use tar to copy the existing PMS installation (mirror copy) to /mp1/share/plexmediaserver/Plex Media Server
- Create an ‘override.conf’ file to tell systemd the new environment variable for Plex.
This variable tells PMS where the metadata (Plex Media Server) directory is.
So far so good ?
To share what’s coming next, we’re going to add another environment variable
for you in the ‘override.conf’ file to expressly NOT use /tmp or /var.