gregeeh
September 10, 2023, 6:55am
1
Hi all,
I have recently deleted 1000’s of Photos and Music items from my PMS, so I think there might be a lot of unnecessary files on the Server.
Is there a way to clean up these files, like Cache etc.?
Note, I have not deleted all the Photos and Music items.
TIA
ChuckPa
September 10, 2023, 8:37pm
3
Scan Files
Empty Trash
Clean Bundles
If you want extra DB compaction:
Lastly, under the “Plex Media Server” directory, with PMS stopped, You can empty the JPEG files.
Don’t “Whack” the whole cache directory as it’ll make a mess with certificates, etc.
Go in and be surgical.
1 Like
gregeeh
September 10, 2023, 9:12pm
4
Thanks for your reply, it’s much appreciated.
Just confirming this means all the sub-directories under “Plex Media Server”?
ChuckPa
September 10, 2023, 9:26pm
5
NO! It does not mean “ALL directories under Plex Media Server”
My apologies for not being 100% clear.
Go into Plex Media Server/Cache
In there, under those sub directories, you will find JPEG / JPG files.
You may safely delete those.
If you go deleting other JPEG/JPGs freely, you’ll start erasing your metadata
gregeeh
September 10, 2023, 10:21pm
6
Great, glad I asked.
Won’'t the metadata still be there for all the stuff I deleted?
Off Topic Question: Is the best way to backup PMS to stop PMS and tar the Library folder and all its subs?
ChuckPa
September 10, 2023, 10:40pm
7
If you deleted all the JPGs, the textual parts would be there but the metadata sets wouldn’t be complete. PMS would have to download all of it again (Refresh Metadata) in order to correct it.
The safest backup is always with PMS stopped (DB files are static/closed)
From there tar is, imho, the most portable, fastest, and easiest
tar cf /path/to/somewhere/PlexBackup.tar ./Library
allows you to make the backup as well as move the
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR easily if you wanted to.
2 Likes
gregeeh
September 10, 2023, 11:02pm
8
Thank you @ChuckPa , once again you have been very helpful.
Greg
1 Like
system
Closed
December 9, 2023, 11:03pm
9
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.