# Plex Temp Folder Path deleted

**URL:** <https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [December 8, 2022, 3:10am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856 "2022-12-08T03:10:26Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [December 8, 2022, 5:26am UTC](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856/8 "2022-12-08T05:26:26Z")

</div>

Using this how-to from “Linux Tips”

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/6):
>
> 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…

we’re going to: ( I’ll write this out as copy/paste possible as I can for you )

1. Stop PMS
2. open bash terminal window and work from root:

```auto
$ sudo bash
# mkdir /mp1/share/plexmediaserver
# chown plex:plex /mp1/share/plexmediaserver
# cd "/var/lib/plexmediaserver/Library/Application Support"
# tar cf - . | (cd /mp1/share/plexmediaserver ; tar xf -)
# mkdir /etc/systemd/system/plexmediaserver.service.d
# cat > /etc/systemd/system/plexmediaserver.service.d/override.conf <<EOF
[Service]

Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/mp1/share/plexmediaserver"

EOF
# cat /etc/systemd/system/plexmediaserver.service.d/override.conf
#
# NOTE: Confirm the contents of override.conf matches how shown in the Linux Tips
#

```

I’m stopping here so you can ask anything about what we’re doing.

1. Stop Plex
2. Use tar to copy the existing PMS installation (mirror copy) to /mp1/share/plexmediaserver/Plex Media Server
3. Create an ‘override.conf’ file to tell systemd the new environment variable for Plex.  
This variable tells PMS where the metadata (Plex Media Server) directory is.

So far so good ?

To share what’s coming next, we’re going to add another environment variable  
for you in the ‘override.conf’ file to expressly NOT use /tmp or /var.

---

_[View the full topic](https://forums.plex.tv/t/plex-temp-folder-path-deleted/821856)._
