Merge pull request #1430 from SkynetLabs/fil/disk-usage-root-dirs

Fil/disk usage root dirs
This commit is contained in:
Matthew Sevey 2021-12-13 08:44:55 -05:00 committed by GitHub
commit c77e793360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -23,11 +23,21 @@ dump () {
echo
df -h /home/user
# Root dirs
echo
echo "Root dirs:"
docker run -v /:/host-root alpine:3.15.0 sh -c 'du -hs /host-root/*' | sed 's#/host-root##'
# Home dirs
echo
echo "Home dirs:"
docker run -v /home/user:/home/user alpine:3.15.0 du -hs /home/user/*
# Skynet webportal dirs
echo
echo "skynet-webportal dirs:"
docker run -v /home/user:/home/user alpine:3.15.0 du -hs /home/user/skynet-webportal/*
# Docker data dirs
echo
echo "Docker data dirs:"