# Updating media path in Plex database

**URL:** <https://forums.plex.tv/t/updating-media-path-in-plex-database/913462>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [April 16, 2025, 7:42am UTC](https://forums.plex.tv/t/updating-media-path-in-plex-database/913462 "2025-04-16T07:42:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin.Bolding](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@Martin.Bolding](https://forums.plex.tv/u/Martin.Bolding)\
**Post date:** [April 16, 2025, 7:42am UTC](https://forums.plex.tv/t/updating-media-path-in-plex-database/913462/1 "2025-04-16T07:42:12Z")

</div>

Following a hardware failure of my old NAS I have recovered my data (both media files and Plex configuration) from a Netgear ReadyNAS to a QNAP system.

However, the highest level folder (corresponding to the RAID volume name or storage pool) over which I have no control, has changed, so (as an example) a file which was at:

/VOLUME00/Music/CD/ABBA/Number Ones/01 SOS.flac  
is now at:  
/share/Music/CD/ABBA/Number Ones/01 SOS.flac

While I have created a symbolic link to map /VOLUME00 to /share (which works!), ideally I’d like to correct the paths held within the Plex (SQLite) database. If the database were a plain text file I could just do a global find/replace of “VOLUME00” with “share”, but clearly it’s a bit more complex than that. Can anyone help with a set of commands to execute within the Plex SQLite shell to achieve this (or point me in the right direction at least).

Many thanks.

---

<div class="post-metadata">

**Author:** ![pshanew](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pshanew/32/160555_2.png) [@pshanew](https://forums.plex.tv/u/pshanew)\
**Post date:** [April 16, 2025, 4:04pm UTC](https://forums.plex.tv/t/updating-media-path-in-plex-database/913462/2 "2025-04-16T16:04:29Z")

</div>

Have look at this post (and the thread in general):

> [@\[HowTo\] Plex database modification - Moving media the right/wrong way](https://forums.plex.tv/t/howto-plex-database-modification-moving-media-the-right-wrong-way/126701/10):
>
> Ok, wow! That was surprisingly easy. Everything seems to be working GREAT! So just so it’s clear. Following my instructions will likely mess up your Library. But it worked wonders for me. AND it is SO easy. Easier than following the nuanced instructions in that article I linked above. Shutdown plex server Backup your data [Backing Up Plex Media Server Data | Plex Support](https://support.plex.tv/hc/en-us/articles/201539237) Copy your content to the new location Drop the triggers that prevent editing your database. Edit your database. Find the lo…

It describes the database modifications necessary to update the media locations if its path changes.

I hope it’s obvious, but back up your database before making any changes. Heck, back up the entire Plex Media Server data directory. And ensure that PMS is stopped while making any DB changes.

---

<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:** [July 15, 2025, 4:04pm UTC](https://forums.plex.tv/t/updating-media-path-in-plex-database/913462/3 "2025-07-15T16:04:43Z")

</div>

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