Home Articles Platform info How to manage disk space and disk usage

How to manage disk space and disk usage

Many traditional hosting providers offer huge amounts of storage, with the likes of 100’s GB of data. This is a practice known as overselling, which is done in order to make the services seem better and larger than they actually are.

At Servebolt we don’t oversell. Our storage solution is highly optimized for performance. We only use solid state disks (SSD) or NVME in a RAID 1 setup. This gives our customers extremely fast read/write performance, both for regular files and for databases. It also allows one drive to fail, and to be replaced, without any service disruption or performance loss.

Our smallest hosting package contains 1GB of storage but our Pro plans start with 4 GB. These 4GB are more than enough for most of our customers and their websites and e-commerce sites. Sometimes though, a bit of data management can be necessary.

Manage disk usage through SSH

Follow the following steps to manage your disk usage via SSH

  1. Turn on SSH access

    First make sure you have SSH access turned on: Servebolt Helpcenter, Connecting using SSH.

  2. Login using SSH

    Use the information provided in the site registration email to log into your site via SSH

  3. Check disk usage in directories

    Run the following command through the terminal: du -hd 1.
    This will give you a list of all underlying directories and the disk usage in each directory. You can then navigate into a directory and repeat the command to exactly “pin down” where most data is being stored with cd [directoryname]

  4. Find big files

    Run the following command through the terminal: find ~/ -size +10M -ls
    This will give you a list of all files larger than 10MB on the host. You can adjust the file size in the command to fit your needs.

  5. Find large files

    Once you’ve found the directory with the most data, and navigated into it using the cd command, run the following command to list all files in the directory according to size (with the largest file in the end). ls -lSr

  6. Remove large files

    To remove files, use the rm command like this: rm -f [filename]

What files can I delete?

Many times, when we’ve cleaned out customers websites, we’ve noticed that the following type of files are unnecessary stored.

  • Database and/or file backups, often automatically generated by plugins
  • Cache files, in WordPress often stored under /wp-content/cache/
  • Manually compressed files/directories, ending with .zip, .tar.gz or .tgz

If you want to clean out files and aren’t sure if the files are necessary or not, feel free to contact our customer support. And of course, you can always easily upgrade to an account with more data storage through our control panel.

Did this help you?