# DB Update Problems?

**URL:** <https://forums.plex.tv/t/db-update-problems/677329>\
**Category:** General Discussions\
**Created:** [January 12, 2021, 2:52am UTC](https://forums.plex.tv/t/db-update-problems/677329 "2021-01-12T02:52:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe\_havrilla\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@joe\_havrilla\_gmail\_com](https://forums.plex.tv/u/joe_havrilla_gmail_com)\
**Post date:** [January 12, 2021, 2:52am UTC](https://forums.plex.tv/t/db-update-problems/677329/1 "2021-01-12T02:52:26Z")

</div>

Just came home to check my Plex Server (~9,000 movies) and found hundreds of “newly added” and that 223 prior resolved duplicates ( a pantload of effort to resolve) have now been reduped in the library. In short, WTF? How can I reverse your destruction?

---

<div class="post-metadata">

**Author:** ![Volts](https://avatars.discourse-cdn.com/v4/letter/v/a5b964/32.png) [@Volts](https://forums.plex.tv/u/Volts)\
**Post date:** [January 12, 2021, 3:48am UTC](https://forums.plex.tv/t/db-update-problems/677329/2 "2021-01-12T03:48:06Z")

</div>

Here’s a guess -

You have `Empty trash automatically after every scan` enabled (it’s on by default) in `Settings` -\> `Library`.

Your Plex server temporarily lost connectivity to some of your media, and removed the unavailable items. (Plex tries to prevent this, but there are still ways it can occur.)

Then the media came back. Perhaps a USB drive, NAS connection, or other remote mount? So Plex scanned the items and began matching them again.

I’m guessing the file naming isn’t _perfect_, so Plex wasn’t able to automatically re-match the movies correctly.

I strongly encourage you to disable `Empty trash automatically after every scan`.

Depending on when this happened, you could consider reverting to a previous DB backup.

> **[Restore a Database Backed Up via 'Scheduled Tasks' | Plex Support](https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/)**
>
> One of the many Scheduled Tasks that a Plex Media Server performs is to make regular backups of the core...

If your files are well-named but you have hard-to-match movies, consider adding an identifier to their folder/file names. Search for `tt0372784` on this page for instructions:

> **[Naming and organizing your Movie files | Plex Support](https://support.plex.tv/articles/naming-and-organizing-your-movie-media-files/)**
>
> The scanners and metadata agents used by Plex will work best when your major types of content are separated from...

---

<div class="post-metadata">

**Author:** ![joe\_havrilla\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@joe\_havrilla\_gmail\_com](https://forums.plex.tv/u/joe_havrilla_gmail_com)\
**Post date:** [January 13, 2021, 4:11am UTC](https://forums.plex.tv/t/db-update-problems/677329/3 "2021-01-13T04:11:42Z")

</div>

Interesting. I will have to work through it. Thank you for the suggestions.

---

<div class="post-metadata">

**Author:** ![joe\_havrilla\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/j/e99b99/32.png) [@joe\_havrilla\_gmail\_com](https://forums.plex.tv/u/joe_havrilla_gmail_com)\
**Post date:** [January 13, 2021, 4:30am UTC](https://forums.plex.tv/t/db-update-problems/677329/4 "2021-01-13T04:30:50Z")

</div>

Wow, thank you. Reverted to last and rescanned. Had to re-fix 2 or 3 instead of 200+. This saved me countless hours. Weeks worth of rework actually. Thank you.

---

<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:** [April 13, 2021, 4:30am UTC](https://forums.plex.tv/t/db-update-problems/677329/5 "2021-04-13T04:30:51Z")

</div>

Closed on April 13, 2021, 4:30am UTC

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