You can change the frequency and length of your logs according to your requirements in /etc/nf and enable compression (This will compress the files and reduce the space taken by these files).You can find these log files in /var/log.Most servers have large log files which use up a lot of space. You can remove all temp files by using the following command: rm -fv /home/*/tmp/Cpanel_* 4) Move or archive logs Any other method that backs up your files without storing them locally.įile Manager always creates a temp file that may or may not get removed based on upload.Use the option to mount external media in WHM > Configure Backups which is available on the server.It would be better if you could mount a backup server to your hosting server and save the backup files there. By doing this you use up a lot of disk space unnecessarily. ![]() Many people do this because they think that it will be useful in the long run but we all know that they tend to be useless when a server failure occurs. ![]() To delete all fantastico backups use the following command: rm -rfv /home/*/fantastico_backups 2) Move your backup files to a backup serverĪnother main reason is storing the backup files of your hosting server on the server itself. You can delete all user’s cPanel backups by using the following command: for user in `/bin/ls -A /var/cpanel/users` do rm -fv /home/$user/backup-*$ done If you have the backup feature in the cpanel enabled this will definitely be the case. One of the main reasons for a large amount of the server’s disk space running out is when user’s start making backups in the server itself instead of removing them after a download. 1) Delete user cPanel and Fantastico backups The only way that you can increase the potential and efficiency of your server is to free up your disk space.įollow the steps and your server will be more efficient than ever. You start running out of disk space due to your server filling up due to the increase in customers. The purge command will also remove any configuration files and dependencies, so use with care and only if you have backups of any config files.Getting customers is beneficial for any business but behind the scenes, we know that it causes some issues. ![]() To illustrate the step we purged Chromium from our install. Use the purge command to remove the application / package from the OS. At the top of our list is the Chromium web browser (370439 bytes).Ĥ. There are going to be a few large applications that we can remove. Check the output of the command and look for any applications that can be removed. W will list all the packages in a given pattern, a pattern that we shall later supply. There is a lot to pick from this command. Use the dpkg-query command to list the installed applications. The dpkg-query command is used to query the installed applications and packages on our system.Ģ. The first uses the traditional tools, already installed on our Raspberry Pi. There are many ways to do this, but let's focus on two. We can scan the database of installed applications and produce a list of the largest applications. ![]() (Image credit: Tom's Hardware) Cutting the Fat from Raspberry Pi OSįinding the largest installed applications requires a little detective work and luckily Linux has the tools to do this.
0 Comments
Leave a Reply. |