# Moving Metadata repository from

**URL:** <https://forums.plex.tv/t/moving-metadata-repository-from/574204>\
**Category:** Metadata & Adding Files\
**Tags:** server-linux-arm\
**Created:** [April 14, 2020, 2:39pm UTC](https://forums.plex.tv/t/moving-metadata-repository-from/574204 "2020-04-14T14:39:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![quijote14](https://avatars.discourse-cdn.com/v4/letter/q/c0e974/32.png) [@quijote14](https://forums.plex.tv/u/quijote14)\
**Post date:** [April 14, 2020, 2:39pm UTC](https://forums.plex.tv/t/moving-metadata-repository-from/574204/1 "2020-04-14T14:39:49Z")

</div>

Server Version#: 1.19.1.2645  
Player Version#:  
Good evening,  
I installed Plex Server on a Raspberry pi4 with an external USB disk (always connected). Everything works perfectly, only the /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata directory fills up continuously, making the SD card full.  
I would like to have metadata written to the USB disk, for example, in /media/pi/Media/Metadata. Where/How can I set this up?

Thank you very much

---

<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 14, 2020, 4:07pm UTC](https://forums.plex.tv/t/moving-metadata-repository-from/574204/2 "2020-04-14T16:07:27Z")

</div>

This forum post describes how to move the [Plex data folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/) to a new location:

> [@Moving PMS 'Library'](https://forums.plex.tv/t/moving-pms-library/197342):
>
> Moving Plex’s metadata (Library) directory on systemd based systems This information is intended for those systems where cat /proc/1/comm returns systemd. If your system returns init, please see the next post in this thread. While you may change /lib/systemd/system/plexmediaserver.service, it is under the control of the package manager and subject to replacement without warning at any time during an update. To provide stability, systemd allows creation of an override.conf file to customiz…

Permissions under /media do not work as you’d expect will likely cause issues. I’d recommend against using the auto-mounted location (/media/pi/…) and create a /etc/fstab entry for the USB drive. Make user `plex` the owner, or at least give it full rwx access.

---

<div class="post-metadata">

**Author:** ![quijote14](https://avatars.discourse-cdn.com/v4/letter/q/c0e974/32.png) [@quijote14](https://forums.plex.tv/u/quijote14)\
**Post date:** [April 14, 2020, 4:27pm UTC](https://forums.plex.tv/t/moving-metadata-repository-from/574204/3 "2020-04-14T16:27:10Z")

</div>

Thanks a lot, but where I set to point to new directory?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [April 14, 2020, 4:27pm UTC](https://forums.plex.tv/t/moving-metadata-repository-from/574204/4 "2020-04-14T16:27:32Z")

</div>

Read the document please. It shows you each step.

---

<div class="post-metadata">

**Author:** ![quijote14](https://avatars.discourse-cdn.com/v4/letter/q/c0e974/32.png) [@quijote14](https://forums.plex.tv/u/quijote14)\
**Post date:** [April 14, 2020, 4:30pm UTC](https://forums.plex.tv/t/moving-metadata-repository-from/574204/5 "2020-04-14T16:30:18Z")

</div>

Ops … sorry and 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 14, 2020, 4:30pm UTC](https://forums.plex.tv/t/moving-metadata-repository-from/574204/6 "2020-04-14T16:30:58Z")

</div>

It looks like step 1 (or is it A 🙂 ) covers this part.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [April 14, 2020, 4:31pm UTC](https://forums.plex.tv/t/moving-metadata-repository-from/574204/7 "2020-04-14T16:31:33Z")

</div>

It’s step Y for me 🙃

---

<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 13, 2020, 4:31pm UTC](https://forums.plex.tv/t/moving-metadata-repository-from/574204/8 "2020-07-13T16:31:36Z")

</div>

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