this post was submitted on 08 Jan 2025
8 points (100.0% liked)

Lemmy Support

4693 readers
13 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

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.

top 2 comments
sorted by: hot top controversial new old
[–] Doombot1@lemmy.one 1 points 7 hours ago

I use ‘du -Lhs’ to check directory size. How long does it take for you to run that command? The only time I’ve ever run into a ‘du’ command taking a long time is when running it over the network to a slow-ass 2010-era system in California for a project I was doing at work with hundreds of terabytes of data and millions of files.

[–] ocean@lemmy.selfhostcat.com 2 points 17 hours ago* (last edited 17 hours ago)

Depending on if you put its volume in the image or a directory you need to look there. Check size or whichever it is. I believe for directory it’s du -h and for docker you could docker ps to see all.

Oh I see you say taking the directory size takes too long… how could that take more than 10 seconds…? Are you not using CLI