I’m running a small instance just for myself and a friend. We basically use it to access the Lemmy fediverse.

I was under the impression that our instance would not download imagery that was not hosted on it but the pict-rs “files” directory ended up with 45 gig of data which ultimately filled up the VPS storage space.

Is there a command that I can automate to prune this regularly or does anyone have a solution?

  • RunAwayFrog@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Imagine if media in Lemmy was all hosted in a distributed network filesystem like Iroh, where instances only function as inserters and exit nodes for that media.

    This way, smaller instances can have a smaller cache corresponding to the media that was actually needed by it (recently). And independent peers can help by participating in the distributed file-system network without running instances themselves.

  • Pleonasm@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Can you just run a cronjob to delete files in that directory every day?

    (Maybe there’s a reason you can’t do this, I don’t know how Lemmy instance works)