PMS Migration - Linux

It’s going to be hysterically simple:

  1. Replicate the /etc/fstab media mounts from the first on the second.
  2. Install Plex ( plex.tv/downloads ) but don’t open it. This creates the user , services, and directory.
  3. Stop Plex. (fresh installs automatically start
  4. Go to the original system
  5. Stop Plex
  6. cd /var/lib/plexmediaserver
  7. sudo tar cf /path/to/somewhere/PlexClone.tar ./Library
  8. When it finishes, take it to the new system.
  9. Decommission the original (delete Preferences.xml at absolute minimum)

On the new.

  1. Verify user plex:plex (or ‘other’) can read the media
  2. cd /var/lib/plexmediaserver
  3. sudo mv Library Library.unused
  4. sudo tar xf /path/to/PlexClone.tar (the file you brought over from the original)
  5. sudo chown -R plex:plex ./Library
  6. sudo rm -rf Library.unused (you don’t need it now)

If you’ve got all the mounts and permissions correct,

sudo systemctl start plexmediaserver

It will spin up and resume as if nothing ever happened.

2 Likes