# Re-add previous optimized versions after library recreation

**URL:** https://forums.plex.tv/t/re-add-previous-optimized-versions-after-library-recreation/748944
**Category:** Metadata & Adding Files
**Tags:** server-linux, media-optimizer
**Created:** [October 7, 2021, 1:14am UTC](https://forums.plex.tv/t/re-add-previous-optimized-versions-after-library-recreation/748944 "2021-10-07T01:14:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sulliops](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sulliops/32/256372_2.png) [@sulliops](https://forums.plex.tv/u/sulliops)
#### Post date: [October 7, 2021, 1:14am UTC](https://forums.plex.tv/t/re-add-previous-optimized-versions-after-library-recreation/748944/1 "2021-10-07T01:14:55Z")

</div>

The latest Plex update evidently corrupted my database, as I discovered this morning. Despite the fact that I have backups turned _on_, they’re nowhere to be found in `/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases`.

My library was small, so re-creating and re-scanning my folders for content wasn’t difficult. However, all my optimized versions are no longer recognized by Plex. The optimized files _are_ picked up by Plex, but they’re treated as secondary file sources and not “official” optimized versions.

I know there isn’t any way to manually specify optimized versions through the Plex web application, so I’m wondering if there’s a way to do this by editing the Plex database. According to a post on another thread, it might be possible.

> [@Re-add Optimized Versions](https://forums.plex.tv/t/re-add-optimized-versions/126888/6):
>
> You could try to replicate this db entry on the… server.

I tried copying and opening my database in DB Browser for SQLite, but I can’t find the tables or rows that handle optimized versions.

Linux Version: Ubuntu 20.0.3 LTS  
Plex Server Version: 1.24.3.5033

---

<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: [January 5, 2022, 1:15am UTC](https://forums.plex.tv/t/re-add-previous-optimized-versions-after-library-recreation/748944/2 "2022-01-05T01:15:28Z")

</div>

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