Move Plex Server:
Install the Plex Media Server on the new Plex Server. If the setup wizard in the browser launches, just exit out. Sign Out and Stop the Plex Media Server on the New Plex Server.
sudo service plexmediaserver stop
Now we will make changes to the old Plex Server and stop services-
Inside Plex management interface: Disable the Empty trash automatically after every scan preference for the Server under Library. Sign out of your account under Settings > Server > General in Plex Web App Quit/exit the Plex Media Server so that it is no longer running via command:
sudo service plexmediaserver stop
Copy Server Data From the Source System
Plex install location on Ubuntu:
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/
Go to install Directory:
cd '/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/'
Backup only the files we need and create the backup file: plexbackup.tgz
sudo tar zcvf plexbackup.tgz Cache Diagnostics Media Metadata "Plug-in Support"
Copy the file created above to the new Plex Server home directory.
Working in your home folder, make a new directory and uncompress the backup
mkdir plexbackup
cd ~/plexbackup
tar zxvf ../plexbackup.tgz
With the backup file transferred to target system and uncompressed, remove the conflicting files on the target system and move the backup into place:
cd "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server"
sudo systemctl stop plexmediaserver (should already be stopped from previous step, but just incase)
sudo rm -rf Cache Diagnostics Media Metadata "Plug-in Support"
sudo mv ~/plexbackup/* .
sudo chown -R plex:plex *
sudo systemctl start plexmediaserver
Go to web interface and claim server
http://PlexServerIP:32400/web
For servers with newer intel onboard GPUs: create and then edit: /etc/modprobe.d/i915.conf Add and save file:
options i915 enable_guc=2
then
sudo update-initramfs -u