How do i see the storage space used by media on my server? - eviltoast

I made an instance following the tutorial for docker. Now i really want to track the storage space my instance is using (mostly out of curiosity), but i can’t find any way to (quickly) check the storage used by pictrs. Checking the directory size takes way too long.

Maybe it’s obvious and I just missed it but idk.

  • danakongur@lemmy.spronkus.xyzOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    22 hours ago

    last time i tried it took like 20 minutes, when it’s just around 2GiB.

    i thought it might be because the folder is on a hdd, so i tested moving the entire thing to an ssd and lo and behold, du only took 15 seconds there. too bad I don’t have enough disk space on the ssd to keep the folder there, so i guess I’ll just suffer. the files are probably fragmented over the entire drive or something, idk.

    • toynbee@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      9 hours ago

      It depends on how your mounts are setup, but df might get you closer to what you need.

      edit: This command shows the usage of mounted partitions. If your setup is on its own mount, that will probably get you the you need. If not, you might need to do some deductive work.