How many backup copies of com.plexapp.plugins.library.db-* do I really need?

Server Version#: 1.23.5.4841
Player Version#: N/A (web)

After my remote backups started failing due to a lack of disk space, I went on an investigation and found my PlexServerSettings/Library/Application Support/Plex Media Server/Plug-in Support/Databases/* taking up about 500GB of space … which is actually around 14,000 copies of the db file mentioned in the subject (~30 mb each).

(I am on a Raspberry Pi, but have a symlink to an external hard drive for the Plex Server Settings).

I choose to believe this isn’t ‘by design’ – I thought I saw elsewhere in the forums that there should be cleanup logic running. So… how do I go about investigating why that cleanup logic isn’t working… and what’s the general guidance for manual cleanup? Save a file from the beginning, a month ago, and an hour ago?

TLDR - what should I do manually, and how do I ensure I don’t have to do this again?

Thanks!

There should be 5 DB files by design, the currently active one and 4 backups with each backup being taken 3 days apart.

What filesystems are you using?
Possible it also doesn’t like the symlink, which folder in the path do you symlink?

I’m using Raspbian Buster (looks like a build from ~5/2021)

My simlink is /var/lib/plexmediaserver/Library.

I’m seeing these files created every ~15 minutes, for example:

com.plexapp.plugins.library.db-1648573202
com.plexapp.plugins.library.db-1648574102

When the server creates a back up the date it adds to end of backup filename is a human readable date such as com.plexapp.plugins.library.db-2022-03-29.

In your file names that appears to be epoch time which I think would be by something else making them

So, this is embarrassing …

I had written a cron job that (in theory) will restart the plex service if a grep request fails… and before starting the service again, it would make a backup. The grep has been returning unauthorized for … who knows how long at this point, and making a backup every 15 minutes.

Thanks for helping me understand. Turns out this was by bad design – but it’s my bad design. :smiley:

1 Like

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