Migrate Plex Server – Ubuntu

To migrate your Plex server to a new Ubuntu server, you can follow these steps:

1. Set up the new Ubuntu server:

Install Ubuntu on the new server and ensure that it is up to date with the latest updates and packages.

2. Install Plex Media Server:

On the new Ubuntu server, download and install the Plex Media Server package. You can obtain the latest version from the Plex website.

$ wget https://downloads.plex.tv/plex-media-server-new-version.deb
$ sudo dpkg -i plex-media-server-new-version.deb

Replace “new-version” with the actual version number you downloaded.

3. Stop the Plex Media Server service:

Use the following command to stop the Plex Media Server service:

$ sudo service plexmediaserver stop

4. Copy Plex data directory:

On the old Ubuntu server, locate the Plex Media Server data directory. The default directory is /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/. Copy the entire directory to a temporary location.

$ sudo cp -R /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/ /path/to/temp/location/

Replace /path/to/temp/location/ with the path to your temporary location.

5. Transfer data to the new server:

Copy the Plex Media Server data directory from the temporary location on the old server to the corresponding location on the new server.

$ scp -r /path/to/temp/location/Plex\ Media\ Server/ new-server-ip:/var/lib/plexmediaserver/Library/Application\ Support/

Replace new-server-ip with the IP address of the new server.

6. Set ownership and permissions:

On the new server, set the ownership and permissions for the copied Plex data directory.

$ sudo chown -R plex:plex /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/
$ sudo chmod -R 755 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/

7. Start the Plex Media Server service:

Finally, start the Plex Media Server service on the new server.

$ sudo service plexmediaserver start

8. Verify and update settings:

Access the Plex web interface on the new server and ensure that all your media libraries, settings, and metadata are intact. Make any necessary updates or adjustments.

That’s it! Your Plex server should now be migrated to the new Ubuntu server. Remember to update any firewall or router settings, if necessary, to allow access to the new server.

Check Also


Detect SQL Injection (SQLi) and XSS

SQLi and other injection attacks remain the top OWASP and CERT vulnerability. Current detection attempts frequently involve a myriad of regular expressions which are not only brittle and error-prone but also proven by Hanson and Patterson at Black Hat 2005 to never be a complete solution. LibInjection is a new open-source C library that detects SQLi using lexical analysis. With little upfront knowledge of what SQLi is, the algorithm has been trained on tens of thousands of real SQLi attacks and hundreds of millions of user inputs taken from a Top 50 website for high precision and accuracy.

Accessing ESXi console screen from an SSH session - 2

Accessing ESXi console screen from an SSH session

I’ve had this issue many times where Firewall ports to iDrac, iLo or RSA were …

Leave your solution or comment to help others.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from blackMORE Ops

Subscribe now to keep reading and get access to the full archive.

Continue reading

Privacy Policy on Cookies Usage

Some services used in this site uses cookies to tailor user experience or to show ads.