Select a topic:

Choose from one of the topics below to browse other articles

Articles & Information.

Analysing Site Disk/Storage Usage on Scout

Last updated by Ashley Cawley on February 07, 2024 10:39

00:00: Lets take a look at how you can analyse where storage or disk space is being used up on a website via SSH.

00:06: Open up your Terminal or SSH app on your PC. On Apple Mac and Linux computers they have a Terminal app built in. On Windows computers you may need to get free SSH software like puTTY.

00:18: We then enter in our SSH connection details to connect to our Site and Server. You can find this on Scout in the Files section, we have a different video covering how to connect to SSH if you need more information on this.

00:31: We enter in our password.

00:34: Once we are logged in using SSH, we run the command N C D U.

00:39: N C D U is a command line utility that looks at the size of your files and folders and then it displays those by re-ordering them, with the largest files or folders at the top. It also shows their size in Megabytes or Gigabytes.

00:52: When using N C D U you can move around your various folders, using your arrow keys. You can go into a folder by pressing enter. Here I have gone into the "site" folder

01:03: Then I go into the public underscore html folder. Here we can see common WordPress files and folders. One example that jumps out at me here is a non-standard folder called old backups, which is much larger than the rest of the site, and is no longer needed anymore.

01:19: We can easily delete files or folders we have selected by pressing the D key, which then shows a confirmation prompt where we can say, yes to delete the selected files or folders. When files are deleted using this method it is not reversible, there is no "recycle bin" with this method, so please do this with care. The Scout platform has in-built backups which are taken regularly, so there are those which can be called upon if needed.

01:43: The Scout platform was handcrafted with love by our cloud above team in Cornwall. If you have any feedback or suggestions then we would love to hear from you.