This HOW TO assumes that you are using Ubuntu 20.04.x, the principles will remain the same regardless of your Operating System
On your new Plex server, perform the following steps
Reboot your new plexmediaserver and test. Open your web browser and point it to http://<new server ip address>:32400/web
You will see your Plex home screen and all your media, play a video and verify that your libraries are intact.
On your new Plex server, perform the following steps
- Install the Plex Signed Key: curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add –
- Install the Plex Repository: echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
- Check for updates and install them: sudo apt update && sudo apt upgrade
- Install plexmediaserver: sudo apt install plexmediaserver -y
- Prepare your metadata directory, you will need to delete the contents of the Library: sudo rm -rf /var/lib/plexmediaserver/Library
- sudo systemctl stop plexmediaserver
- sudo rsync -azvh root@<old server ip address>:/var/lib/plexmediaserver/ /var/lib/plexmediaserver/
- sudo chown -R plexlex /var/lib/plexmediaserver/
Reboot your new plexmediaserver and test. Open your web browser and point it to http://<new server ip address>:32400/web
You will see your Plex home screen and all your media, play a video and verify that your libraries are intact.