Restore a Plex Media Server Database Backup

Finding the Database Backups

The location of the database backups will vary by operating system. Unless you’ve altered the location via the Backup directory advanced setting, you’ll find the backup files under the /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases subdirectory inside the normal server data directory.

The database backups will have the date in the filename and will be named along the lines of:

com.plexapp.plugins.library.db-2020-05-31
com.plexapp.plugins.library.db-2019-06-01

and

com.plexapp.plugins.library.blobs.db-2020-05-31
com.plexapp.plugins.library.blobs.db-2019-06-01

Related PageWhere is the Plex Media Server data directory located?

Restoring a Backup

Once you’ve found the backup you wish to use:

  1. Stop/quit your Plex Media Server
  2. Move the following files out of the directory and store them somewhere for backup, just in case. (The “-shm” and “-wal” are temporary files and may not be there.)com.plexapp.plugins.library.db com.plexapp.plugins.library.db-shm com.plexapp.plugins.library.db-walandcom.plexapp.plugins.library.blobs.db com.plexapp.plugins.library.blobs.db-shm com.plexapp.plugins.library.blobs.db-wal
  3. Duplicate the database backup file into the correct directory and then rename them to com.plexapp.plugins.library.db and com.plexapp.plugins.library.blobs.db.
  4. Ensure that Plex Media Server has read/write permissions to the restored database file(s) (e.g. in a Linux install, the plex:plex (user:group) needs access)
  5. Start your Plex Media Server