Ive been hosting a lemmy Instance for about 2 months and it grew to about 50 gigs. A lot of that storage seems to come from image cache. Whats the best way to only delete cache and keep my uploaded images?
From a theory perspective alone, ignorant of Lemmy specifics: a database query can be made to list all cached images including a unique identifier for each image. Use this list to find each cached image.
Look at your cached image list and decide how you want to prune it. The most likely pattern for this system is FIFO, so prune the oldest cached data until you drop below the target disk usage.
In practice, you’ll likely use somebody else’s solution. Be sure to read the contents of their solution carefully to ensure it doesn’t move sensitive data to an externally accessible location or exfiltrate data directly.
I’ve found that for single person purposes, a RAID array is unnecessary. I just buy beefy 8TB drives. If it dies, just download any recent torrents again or pull a backup
Best way to clean up data on my lemmy Instance?
Ive been hosting a lemmy Instance for about 2 months and it grew to about 50 gigs. A lot of that storage seems to come from image cache. Whats the best way to only delete cache and keep my uploaded images?
Pirates, all of a sudden, discussing PAID options!!? How did we regress that far !? (www.reddit.com)