# Restore a plex database from backup?

**URL:** <https://forums.plex.tv/t/restore-a-plex-database-from-backup/897921>\
**Category:** Plex Media Server\
**Tags:** server-linux, server-docker, server-unraid\
**Created:** [December 5, 2024, 1:21am UTC](https://forums.plex.tv/t/restore-a-plex-database-from-backup/897921 "2024-12-05T01:21:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xokia](https://avatars.discourse-cdn.com/v4/letter/x/8491ac/32.png) [@xokia](https://forums.plex.tv/u/xokia)\
**Post date:** [December 5, 2024, 1:21am UTC](https://forums.plex.tv/t/restore-a-plex-database-from-backup/897921/1 "2024-12-05T01:21:37Z")

</div>

My database recently got corrupted. I’d like to restore it from a prior backup. I tried to follow this [https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/](https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/)

I stopped the plex server  
I took the library.db and blob.db backup files and placed them  
\appdata\plex\Library\Application Support\Plex Media Server\Plug-in Support\Databases

I then restarted plex server  
nothing changed it was still using the old database

I am running this on unraid in a docker container. It would be super helpful since you folks already have a backup section in the settings panel to create a “restore from backup” as an option. That a user could select the backup to restore from instead of having to do everything from cmd line.

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [December 5, 2024, 4:06am UTC](https://forums.plex.tv/t/restore-a-plex-database-from-backup/897921/2 "2024-12-05T04:06:20Z")

</div>

Use the Plex DBRepair Utility: [GitHub - ChuckPa/PlexDBRepair: Database repair utility for Plex Media Server databases](https://github.com/ChuckPa/PlexDBRepair)

You can try to repair the current database. Use the AUTO choice.

If the database cannot be repaired, use REPLACE. It will check the backup versions before restoring one as the active database.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [March 5, 2025, 4:06am UTC](https://forums.plex.tv/t/restore-a-plex-database-from-backup/897921/3 "2025-03-05T04:06:48Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
