Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.nowsci.com
selfhosted·Selfhostedbyfmstrat

Lemmy Post Purger (LPP) now supports direct-removal of media from Pict-rs

As with many others, I've recently needed to do some purging of media in Pict-rs. What I also discovered is that due to an issue with either Lemmy, Pict-rs, or my setup, at some point Pict-rs was not properly removing files from the file system on a purge, leaving about 20GB of media orphaned.

To combat this, I've updated LPP with some additional configuration options to do both direct "purge" of leftover media in Pict-rs not tied to "kept" posts and a forced "remove" of files on the file system that are not properly purged (if using local storage).

You can find all the new options at the GitHub link above.

As a reminder, LPP only removes posts/media older than a specified time if they have not been posted, marked read, voted on, commented on, had comments voted on, or saved by users on your instance.

Lemmy Post Purger (LPP) now supports direct-removal of media from Pict-rshttps://github.com/fmstrat/lppOpen linkView original on lemmy.nowsci.com
120

5 replies

I have a follow-up question if you don't mind! You mentioned this:

To combat this, I’ve updated LPP with some additional configuration options to do both direct “purge” of leftover media in Pict-rs not tied to “kept” posts and a forced “remove” of files on the file system that are not properly purged (if using local storage).

Is there a specific setting to use this? For example, if I don't want to setup any aging post purging at the moment, but just want to do as you mentioned (removing any media that isn't tied to a post), which setting(s) would I use to accomplish this?

It looks like this might be done by just passing in a PICTRS_FOLDER directory, and then setting a high PURGE_OLDER_THAN_DAYS variable would do this if I understand right?

2
fmstratreply
lemmy.nowsci.com

That wouldn't work, but I see what you're looking to do. Open an issue and I'll make a flag 😉

2

You reached the end

Lemmy Post Purger (LPP) now supports direct-removal of media from Pict-rs | Spyke