WPCloud Deploy Documentation

Identify The Largest Sites On Your Server

Do you want to know which sites on your server are the largest sites?  There’s an easy way to figure that out!

Step 1: SSH Into Your Server

You need to run the linux du command directly on the server which means SSH.

So, login to your server as root/sudo via ssh.

Step 2: Navigate To The /var/www Folder

cd /var/www

This is the root folder for all your sites.

Step 3: Run This DU Command

sudo du -h --max-depth=1 | sort -hr

The output should look something like this:

121M .
61M ./demo22.vnxv.com
61M ./demo21.vnxv.com
5.0K ./html

The first column contains the size of the folder – in the above example, the entire www folder is 121 megabytes and the two sites are each 61 megabytes.

Bonus: Run It For Your Backups Folder

You can use the same technique to find out which backups are taking up the most space on your server.

Navigate to the backup folder

cd ~/.wp-backup

Run the same DU command described earlier above:

sudo du -h --max-depth=1 | sort -hr