# Change music folder without loosing library information

**URL:** <https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710>\
**Category:** General Discussions\
**Created:** [February 5, 2020, 9:57am UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710 "2020-02-05T09:57:54Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![syncopation](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/syncopation/32/701_2.png) [@syncopation](https://forums.plex.tv/u/syncopation)\
**Post date:** [February 5, 2020, 9:57am UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/1 "2020-02-05T09:57:55Z")

</div>

macOS 10.15 Catalina brought big changes to music. iTunes no longer existis, we now have music app and it behaves different in many regards so we all have to adapt.

I consolidated my music files, removed legacy itunes files and now have a new music folder. I need to re-assign the plex music folder to that new folder. What I would like to prevent from happening, is having to go through thousands of albums and fix all the details I already fixed.

How would I go about that? The file structure and files themselves have not changed but the location has, as I no longer am using the “iTunes” folder.

Any input would be very welcome.

---

<div class="post-metadata">

**Author:** ![anon18523487](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon18523487](https://forums.plex.tv/u/anon18523487)\
**Post date:** [February 6, 2020, 1:10am UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/2 "2020-02-06T01:10:12Z")

</div>

There is no easy way in Plex to do it. There is a way by manually editing your database. See [[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/) for details.

---

<div class="post-metadata">

**Author:** ![syncopation](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/syncopation/32/701_2.png) [@syncopation](https://forums.plex.tv/u/syncopation)\
**Post date:** [February 10, 2020, 6:29pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/3 "2020-02-10T18:29:25Z")

</div>

That is a thread with 62 replies. Not sure where to start or what to do. Maybe I am too stupid to do this.

I am willing to take the layman route, but I am worried about Plex still being unable to pick the correct album cover: [Plex using wrong cover art for albums](https://forums.plex.tv/t/plex-using-wrong-cover-art-for-albums/147016)

Is any work happening to make plex understand what either the first image of all images (in iTunes / music app) is or what the image is that is tagged as “Front Cover” as shown in the linked thread?

@anon18523487 do you have a suggestion? Probably faster for me to just start fresh with music instead of messing up my library on a database level.

---

<div class="post-metadata">

**Author:** ![bjs59](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bjs59/32/102957_2.png) [@bjs59](https://forums.plex.tv/u/bjs59)\
**Post date:** [February 10, 2020, 6:37pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/4 "2020-02-10T18:37:30Z")

</div>

IIRC the steps are…

Before you do anything, make a backup of the database…

1. Create the directory where you are going to store the files. Do not move them yet!!!

2. Add this empty directory to your current music library… Scan library…

3. Move (do not copy!!!) the files from the old directory to the new one… Scan library again…

4. Remove old empty directory from the library and scan library one last time…

---

<div class="post-metadata">

**Author:** ![TeknoJunky](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/teknojunky/32/165055_2.png) [@TeknoJunky](https://forums.plex.tv/u/TeknoJunky)\
**Post date:** [February 10, 2020, 6:55pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/5 "2020-02-10T18:55:48Z")

</div>

> [@bjs59](#):
>
> Move (do not copy!!!) the files from the old directory to the new one… Scan library again…

I think will only work if the server has been configured to ‘watch’ for changes and auto rescan.

 ![image](https://global.discourse-cdn.com/plex/original/3X/5/5/550e896b57a7e80e5ef600ddc075e168064d3b7a.jpeg)

alternatively, you can do the opposite (copy) if you have ‘empty trash automatically’ disabled.

in place of #3

- uncheck this,  
 ![image](https://global.discourse-cdn.com/plex/original/3X/f/5/f54fb0804773e33ced526d8d8ee6227989f007eb.png)
- copy files to new location
- rescan (you should then have duplicates of everything) note this assumes that everything matches the same as existing

1. clean trash manually

![image](https://global.discourse-cdn.com/plex/original/3X/3/4/34c663aae1f8328a7d0b62f47f762dadac1c2859.png)

---

<div class="post-metadata">

**Author:** ![bjs59](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bjs59/32/102957_2.png) [@bjs59](https://forums.plex.tv/u/bjs59)\
**Post date:** [February 10, 2020, 7:07pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/6 "2020-02-10T19:07:41Z")

</div>

The actual steps are towards the end of the thread that @anon18523487 referenced in an above post… I even confirmed the steps when I moved one of my libraries to a new bigger drive…

---

<div class="post-metadata">

**Author:** ![bjs59](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bjs59/32/102957_2.png) [@bjs59](https://forums.plex.tv/u/bjs59)\
**Post date:** [February 10, 2020, 7:11pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/7 "2020-02-10T19:11:34Z")

</div>

The exact post is here:

> [@\[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/44):
>
> Hi everybody, if you want to move media to an other location and you want to keep your items in PMS library intact (with all of your manually edited metadata) follow these steps: create an empty new folder where you will migrate your media add that newly created folder to the library (after you’re done it will automatically scan that empty folder) move (do not copy!) media to that new folder scan done the trick is that you can move around media files among those folders as long the folders a…

---

<div class="post-metadata">

**Author:** ![anon18523487](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon18523487](https://forums.plex.tv/u/anon18523487)\
**Post date:** [February 10, 2020, 9:34pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/8 "2020-02-10T21:34:01Z")

</div>

> [@syncopation](#):
>
> That is a thread with 62 replies. Not sure where to start or what to do. Maybe I am too stupid to do this.

See post 43, it’s basically a series of SQL commands. I wanted to point to the whole thread because manually editing your database can be risky and that thread discusses that and alternatives.

---

<div class="post-metadata">

**Author:** ![syncopation](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/syncopation/32/701_2.png) [@syncopation](https://forums.plex.tv/u/syncopation)\
**Post date:** [February 12, 2020, 3:02pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/9 "2020-02-12T15:02:31Z")

</div>

Took the idiot route and started fresh. I am able to confirm the issue, where [Plex chooses the wrong image as cover image](https://forums.plex.tv/t/plex-using-wrong-cover-art-for-albums/147016), when more than one image existis in the music files, is persisting.

Fear not - I am already at letter “C” of fixing the covers for a few thousand albums. Not all are affected but still much more than to be able to call this a “fun process”.  
🙈

---

<div class="post-metadata">

**Author:** ![anon18523487](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon18523487](https://forums.plex.tv/u/anon18523487)\
**Post date:** [February 12, 2020, 8:42pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/10 "2020-02-12T20:42:59Z")

</div>

> [@syncopation](#):
>
> when more than one image existis in the music files

If you have more than 1 image, PMS should pick the first image. Not sure how else it would know which is the right or wrong poster. Is it not picking the first one?

---

<div class="post-metadata">

**Author:** ![syncopation](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/syncopation/32/701_2.png) [@syncopation](https://forums.plex.tv/u/syncopation)\
**Post date:** [February 13, 2020, 7:30pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/11 "2020-02-13T19:30:34Z")

</div>

@anon18523487 no that’s not the case for me. It seems fairly random to be honest.

---

<div class="post-metadata">

**Author:** ![anon18523487](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@anon18523487](https://forums.plex.tv/u/anon18523487)\
**Post date:** [February 13, 2020, 7:31pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/12 "2020-02-13T19:31:33Z")

</div>

Can you PM me a file that this doesn’t work work. Let me know what poster you get and I’ll see if I can reproduce and figure out why.

---

<div class="post-metadata">

**Author:** ![syncopation](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/syncopation/32/701_2.png) [@syncopation](https://forums.plex.tv/u/syncopation)\
**Post date:** [February 13, 2020, 7:43pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/13 "2020-02-13T19:43:06Z")

</div>

Done.

---

<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:** [May 13, 2020, 7:43pm UTC](https://forums.plex.tv/t/change-music-folder-without-loosing-library-information/537710/14 "2020-05-13T19:43:07Z")

</div>

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