WPCloudDeploy Documentation

Handling Low Disk Space Conditions

If you’ve been using your server for a while then, at some point, you MIGHT see a low disk space warning in the HEALTH column of the server list.  Here are some tips you can use to reduce the amount of disk space being used.

Remove Backups

We store a limited number of backups on your server.  This makes it faster to restore a recent backup.  By default we store 7 days of backups.

You can reduce the number of backups you store as follows:

  • Go to the WPCLOUDDEPLOY → CLOUD SERVERS
  • Click on your server to bring up the detail screen
  • Click on the BACKUP tab
  • Scroll down to the PRUNE BACKUPS section
  • Type in a lower number into the RETENTION DAYS field – eg: 3
  • Click the PRUNE BACKUPS FOR ALL SITES ON THIS SERVER button

 

This will remove backups older than 3 days from your server.

However, this is a one time task. You can make the change permanent though – see the next section.

Permanently Reduce The Number Of Backups Kept On Server

You can permanently reduce the number of backups you keep on your server.

To do this, it depends on whether you have enabled server wide backups for all sites (from the SERVER screen) or whether you’ve enabled backups for a site on the SITE screen.

If you have enabled server wide backups:

  • Go to the WPCLOUDDEPLOY → CLOUD SERVERS
  • Click on your server to bring up the detail screen
  • Click on the BACKUP tab
  • Scroll down to the AUTOMATIC BACKUPS – ALL CURRENT AND FUTURE SITES ON THIS SERVER section
  • If backups are already enabled, disable it
  • Update the RETENTION DAYS field
  • Enable backups again

If you have opted to enable backups on a site-by-site basis:

  • Go to the WPCLOUDDEPLOY → ALL APPS
  • Click on your site to bring up the detail screen
  • Click on the BACKUP & RESTORE tab
  • Scroll down to the AUTOMATIC BACKUPS – THIS SITE ONLY section
  • If backups are already enabled, disable it
  • Update the RETENTION DAYS field
  • Enable backups again

Don’t forget that, in this case, you will need to do this for all sites on your server.


Remove Backups For Sites That No Longer Exist

It is possible that you have backups for sites that no longer exist.  For example you might have deleted a site or changed the domain name which can both leave backups orphaned.

In this case you will need to login to the server via ssh and then examine the ~/.wp-backup folder for orphaned backups (or /root/.wp-backup).


Other Tools

In some cases you might have a single site that has extremely large files – maybe old backups that were imported from another location for example.  You can find these files:

Identify The Largest Files In The WordPress Uploads Folder

Identify The Largest Sites On Your Server


View Diskspace Usage On A Server

After you have finished cleaning up files, you might want to see how space is being used on your server. You can do this as follows:

  • Go to the WPCLOUDDEPLOY → CLOUD SERVERS
  • Click on the server to bring up the detail screen
  • Click on the STATISTICS tab
  • Click on the REFRESH button

View Diskspace Used By A Site

You can view the amount of space being used by a site (including backups) as follows:

  • Go to the WPCLOUDDEPLOY → ALL APPS
  • Click on a site to bring up the detail screen
  • Click on the STATISTICS tab
  • Click on the RECALCULATE button

 

Share: