How to Restore Plex from Backup
In this article
Yes, you can restore Plex from a backup by replacing the current Plex Media Server data folder with a previously saved backup. This restores your libraries, settings, watched statuses, and metadata. Before starting, ensure you have a complete, valid backup of your Plex data directory and that the server is completely shut down during the restore process.
What You'll Need
- A complete backup of your Plex data directory (including
Plug-in Support,Metadata, andPreferences.xml) - Access to the server machine (Windows, macOS, Linux, or NAS) running Plex Media Server
- Administrative or root privileges on the server machine
- File explorer or terminal access with permission to modify system folders
- Optional: external drive or network location where the backup is stored
Step-by-Step
- Shut down the Plex Media Server completely. On Windows, open Services (services.msc), locate Plex Media Server, and stop it. On macOS, open Activity Monitor and quit Plex Media Server. On Linux, run
sudo systemctl stop plexmediaserver. On NAS devices, use the vendor’s control panel to stop the Plex app. - Navigate to your current Plex data directory. The default locations are:
- Windows:
C:\\ProgramData\\PlexMediaServer - macOS:
~/Library/Application Support/Plex Media Server - Linux:
/var/lib/plexmediaserver/Library/Application Support/Plex Media Serveror~/.plexmediaserver - NAS: Check your device’s documentation; often found in
/volume1/Plexor similar.
- Windows:
- Optional but recommended: Rename the current
Plex Media Serverfolder (e.g., toPlex Media Server.bak) to preserve it in case the restore fails. This lets you revert safely. - Copy the full backup of your Plex data (the entire
Plex Media Serverfolder from your backup source) into the same location as the original data directory. - Ensure file permissions are correct. On Linux or NAS systems, run
sudo chown -R plex:plex "/path/to/Plex Media Server"to assign ownership to the Plex user. On Windows and macOS, this is usually automatic if copying locally. - Restart the Plex Media Server. On Windows, use Services to start Plex Media Server. On macOS, relaunch via the app or terminal. On Linux, run
sudo systemctl start plexmediaserver. On NAS, restart via the app manager. - Wait 1–5 minutes for the server to initialize. Open your web browser and go to http://localhost:32400/web. If your libraries, settings, and watched statuses appear, the restore was successful.
- Verify that your media remains linked. If media paths differ between the original and current system, go to Settings > Manage > Libraries, select each library, and update the correct folder paths.
Common Mistakes
- Not stopping the Plex server before replacing files — this can cause file locks or corruption.
- Backing up only the
Metadatafolder but missingPreferences.xml— this results in lost settings and authentication. - Restoring to a different operating system or architecture without checking compatibility — this may cause instability.
- Forgetting to fix file permissions on Linux or NAS, leading to server startup failure.
- Overwriting the backup with current data during testing — always keep an untouched copy.
Tips
- Use symbolic links to store the
Metadatafolder on an external drive for easier backup and restore. - Automate backups using scripts or tools like
rsync(Linux) or scheduled tasks (Windows) to avoid manual errors. - Test your backup periodically by restoring to a secondary machine or VM.
- Keep multiple backup versions (e.g., weekly) to recover from unnoticed issues.
- After restore, check the Plex logs (
Logsfolder) for any path or permission errors.
Troubleshooting
If the server fails to start or libraries don’t appear:
- Ensure the server is fully stopped — check Task Manager (Windows), Activity Monitor (macOS), or
ps aux | grep plex(Linux). - Verify the restored folder contains
Plug-in Support,Metadata, andPreferences.xml. - Check file ownership: on Linux/NAS, the
plexuser must own all files. - If the server starts but shows no libraries, re-add library paths manually under Settings > Manage > Libraries.
- If you get database errors, the backup may be incomplete or corrupted — try an older backup.
- On Windows, if the service fails to start, check Event Viewer for specific errors under Windows Logs > Application.
- As a last resort, restore your original
.bakfolder and try again with a verified backup.
Frequently Asked Questions
Can I restore a Plex backup to a different machine?
Yes, but ensure the new machine runs the same or compatible version of Plex and that file paths for media are either identical or re-mapped after restore.
Does restoring from backup keep my watched history?
Yes, if your backup includes the Metadata folder and Preferences.xml. These files store play states and user settings.
What if my backup is missing Preferences.xml?
You’ll lose server settings, authentication tokens, and network configuration. You may need to sign in again and reconfigure manually.
How often should I back up Plex?
After major changes (libraries, settings, users) and at least weekly if you add content or users frequently.
Can I restore only one library from a backup?
Not directly. Plex backups are full data directory snapshots. To restore a single library, you’d need to extract specific metadata folders manually, which is complex and not recommended.
Does Plex have built-in backup?
No, Plex does not offer automatic or built-in backup. You must manually copy the data directory or use third-party tools.