How to check each app disk/ssd usage?

Hello, I would like to know how much space each app is using, is there somewhere in the interface that info?

This is not easy as a lot of apps will in fact use disk space on various locations.
Making a backup and then looking at the size of that backup may give you a hint.
Otherwise, if you are confortable with command line, you can always move in the directories and use the du -h --max-depth=1 command. I would launch that command from /var/www/, and from /home/yunohost.app/, where most of your app data is probably stored.

1 Like

In the webadmin > apps> install, choose an app, at the end of the description of the app you can find an estimate of disk and ram usage

This information is also available in the manifest of every app in the ynh repository.
But it is an estimate.
You may check disk usage using df -h before installing and after and report it to the ynh repository of the app.
Note that this disk usage will certainly grow up in time depending on the app (plugins, themes, additions…)
For analysing disk usage I use sudo ncdu / -x. I couldn’t find a web based app for that. Ncdu is enough for this task.
You can also run sudo yunohost tools basic-space-cleanup to clean up storage

3 Likes

It was the solution indeed. But I get very odd output:

:/home/yunohost.app $ sudo du -h --max-depth=1
8.0K	./coturn
835M	./yacy
67G	./nextcloud
22G	./transmission
4.0K	./prosody
90G	.

what would that 90G . be?? That’s the ammount of disk I have that’s using kind of the double the space i have and same ammount of backup. I would like to free this space.

I have never used --max-depth=1, but I guess the 90G . is the total of all the lines above (67+22GB already make up to 89GB, plus 0.835GB might round it up on screen to 90GB).

It makes no sense, as my last backup is around 90GB made last month, and my server is using 232GB(I have no backup stored in the server now):

$ df -h
Sist. Arq.      Tam. Usado Disp. Uso% Montado em
udev            7.7G     0  7.7G   0% /dev
tmpfs           1.6G  1.3M  1.6G   1% /run
/dev/nvme0n1p2  456G  232G  201G  54% /
tmpfs           7.7G  1.1M  7.7G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/nvme0n1p1  511M  5.9M  506M   2% /boot/efi
tmpfs           1.6G     0  1.6G   0% /run/user/37447

Run ncdu / -x

1 Like

it shows even less space used:

Run it as root or with sudo

1 Like

indeed, it seems to be some huge logs:

adguardhome logs:

how to safely delete it? Can I simply delete querylog.json? Will doing so not brake adguardhome?

See this https://www.reddit.com/r/Adguard/comments/ghixc9/querylogjson_700mb/

1 Like

hmm I deleted and no problem so far even after restarting adguardhome. Thank you so much for the help. Leave a lightning address so I can send you a coffee.

1 Like