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@sh.itjust.works
    link
    fedilink
    arrow-up
    7
    ·
    1 year 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.

  • palitu@lemmy.perthchat.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year 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@campfyre.nickwebster.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      1 year 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.

    • maxmoon@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year 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.

      • palitu@lemmy.perthchat.org
        link
        fedilink
        arrow-up
        3
        ·
        1 year 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
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

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

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