this post was submitted on 10 Aug 2023
22 points (100.0% liked)

Lemmy Support

4651 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 6 years ago
MODERATORS
 

For some reason on my self hosted lemmy instance, I've managed to accumulate about 50GB worth of data inside my pictrs docker volume. I'm the only person on my instance and I've never uploaded any photos to my server other than my profile photo, profile banner, and site logo. Shouldn't all photos be hosted on other instances?

If it is not safe to simply delete the folders within the _data folder, how would I go about clearing out these files without it harming my server? Thanks in advance, as you can probably tell, I'm definitely new to self hosting my own social services. Thank you!

top 6 comments
sorted by: hot top controversial new old
[–] palitu@lemmy.perthchat.org 4 points 2 years ago (2 children)

I thought that media wasn't sync'd, but i have seen reports that is is moved across. This sounds a lot like it is moved to your instance.

[–] nick@campfyre.nickwebster.dev 3 points 2 years ago* (last edited 2 years ago) (1 children)

That was my understanding too but I just looked through the storage bucket I have backing pict-rs on my instance and there is loads of stuff that is not mine on there.

[–] palitu@lemmy.perthchat.org 1 points 2 years ago

Yeah, that sounds like it must sync all subscribed comms to your instance, media and all

[–] utopify_org@lemmy.ml 1 points 2 years ago (1 children)

This is really weird! Why should something be moved to a one-man-instance? I wouldn't even expect getting 50GB of data if it would be a small public instance.

[–] palitu@lemmy.perthchat.org 3 points 2 years ago

I guess lemmy doesnt know iti s a one-man instance. and it allows for a consistent source for media (ie your home-lemmy).

I have always thought that it should be a time/size limited local cache, like you are happy to assign 50Gb to local cache of all assets from other instances, and it would keep it to size on a first in first out type of setting. Or, keep remote assets for up to 6 months.

When the cached asset expires, lemmy will then point to the original source.

but, i am not a dev.

[–] magnor@lemmy.magnor.ovh 4 points 2 years ago

It is completely safe. I did it a while back.

You could use a tool like Lemmy Post Purger to automate the process.