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!

  • @chickenf622
    link
    711 months ago

    Best bet to see if it would break stuff is to just rename the folder (and make a new one with the same name to be safe). Keep browsing regularly for a few days/weeks to see if anything breaks. My educated guess is it’s probably caching data from other instances.

  • @[email protected]
    link
    fedilink
    English
    411 months ago

    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
      link
      fedilink
      English
      3
      edit-2
      11 months ago

      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.

      • @[email protected]
        link
        fedilink
        English
        111 months ago

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

    • maxmoon
      link
      fedilink
      111 months ago

      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.

      • @[email protected]
        link
        fedilink
        311 months 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
    link
    fedilink
    311 months ago

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

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