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:
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
More Topics In Tips, Techniques & Education. #
- Increase WordPress Upload Size
- How To Access The Entire Server via sFTP
- How Do I Limit PHP Workers For Each Subdomain On A Multisite?
- How To Generate an SSH Key Pair
- Considerations For A Large Number Of Sites On A Single Server
- All The Possible WP-CONFIG.PHP Constants For Core WordPress
- Using MIGRATE GURU To Import Sites
- Force The Use of WWW On A Website
- Local & Remote Statuses On Servers
- CORS Example: Allow Access to Resources Between www and non-www Domains
- Import Sites
- Transferring Sites Between Servers
- Monit vs Netdata vs Monitorix vs GoAccess
- Resolving Common Issues With CloudFlare
- View Used Disk Space For A Site
- Customizing Front-end Styles
- How To Generate An SSH Key-Pair With Termius
- How To Change Your DNS Server
- Restoring From AWS S3 Into A New Site or Server
- Tweaking The Malware Scanner
- Useful OpenLiteSpeed Commands
- Alias Domains
- Custom SSL Certificates
