Script to List Backup Disk Usage in Plesk

Script to list backup disk usage
This article will help you to list the available backups and disk usage using script.

I recently handled a case where the customer wanted to know all of his available backups and the disk usage of those backups. The script I used in this situation is given below.

 

Script to list Backup Disk Usage in Plesk

if [ -d /var/lib/psa/dumps/domains ]; then echo -ne "nn=== PLESK BACKUPS ===n"; cd /var/lib/psa/dumps/domains && du -ks * | sort -nr | cut -f2 | xargs du -sh; echo "[Total `du -hs . | cut -f1`]"; fi;

=== PLESK BACKUPS ===
48K example.tk
20K example123.tk
20K example.ca
20K exampletr.ca
20K 123example.com
[Total 132K]

 

Feel free to modify.

Share this post

Services to Explore

Stay up to date!

Stay up to date with the Web Hosting, Cloud and Server Management Industry News and Tutorials!

We will send you only the relevant emails, and we respect your privacy. Please review our privacy policy for more info.

Plesk Management Services

Focus on your business, and let us take care of your Plesk Servers!
From what you are reading, it seems you are interested in Plesk and related technologies. If you have a moment to spare, please take a look at our Plesk Server Management Services plan, and which might interest you even more!
Plesk Server Management Plan

Value-Added Services

We have services that can help you run a successful business. With us, you don't have to worry about these areas because our experts will take care of it for you.

ServerHealers uses cookies.