Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Script to list disk usage of all domains in Plesk  (Read 1651 times)

0 Members and 1 Guest are viewing this topic.

vinodt

  • Guest
Script to list disk usage of all domains in Plesk
« on: January 10, 2014, 01:20:22 pm »
if [ -d /var/www/vhosts ]; then echo -ne "\n\n=== WEBSITES ===\n"; cd /var/www/vhosts && du -ks --exclude='chroot' --exclude='default' * | sort -nr | cut -f2 | xargs du -sh; echo "[`ls --ignore='chroot' --ignore='default' | wc -l` Sites - Total `du -hs . | cut -f1`]"; fi;

========

Regards,

Vinod T K