If you are new to TikTikTalk ? Your first verification mail might be in your spam folder.Check there and move it to your inbox to complete registration or account verification process..
إعلان مُمول
sociofans

How to delete Backups in WHM/Cpanel with terminal

0
2كيلو بايت

Deleting old backups from the /backup directory in WHM or Cpanel is a complex process if you are managing a VPS server. However, if you are using shared web hosting companies like Namecheap and SiteGround, things are much simpler as you can delete backups with a single click using their customized backup systems or Softaculous.

Backup Problems

When I Installed WHM for the first time, I enabled monthly, weekly, and daily auto backups. My website disk usage of 10 GB suddenly rose to 99 GB within a few weeks. Buying more disk space was not an option because using more than 100 GB was not making financial sense. Therefore, I resorted to finding out ways of decreasing disk usage by removing old backups.

Below is how I managed to delete the backups after several hours of my website being down, reading tutorials, and failed command attempts.

How to delete Backups in WHM using Terminal

We are going to use the WHM terminal to delete the backups. You can also use an SSH client like PuTTY. This procedure assumes that you have used Terminal before and understand what you are doing.

Open Terminal in WHM or using PuTTY and log in using your root credentials then start running the commands below (do not include # before the commands).

  • Check disk space: # df -h
  • Go to the backup folder: # cd /backup
  • Check backup dates to delete (daily, weekly, or monthly): # dir
  • Backup dates will be listed in this format; 2019-11-26 monthly transports.db 2023-02-17 weekly
  • Run this command to delete backups by date: # rm -rf  2019-11-26

Replace the date above with your backup date.

IMPORTANT! Kindly note that if you run the command “rm -rf” without dates or a specified folder you will delete everything. Therefore proceed with caution. If you do not know what you are doing then DO NOT use the “rm -rf” command.

To go back and check if the disk usage has reduced after the deletion, run the command: # cd ..

cd..” means go back by one folder.

Conclusion  – Backup tip

If you want to avoid running out of disk space, do not keep more than one backup per day.  Also, ensure that you have carefully read the backup configuration options in WHM, then enable or disable scheduling and retention options that are necessary and unnecessary respectively.

إعلان مُمول
إعلان مُمول
البحث
إعلان مُمول
الأقسام
إقرأ المزيد
Networking
Mobile Food Services Market Growth Statistics, Size Estimation, Emerging Trends, Outlook to 2033
According to Regional Research Reports, the global mobile food services market is...
بواسطة Nit234 2023-11-21 09:22:02 0 2كيلو بايت
أخرى
Chlor-Alkali Market, Demand To Witness Huge Growth by Fact MR
The chlor-alkali industry, a cornerstone of the global chemical sector, primarily produces...
بواسطة akshaygorde 2025-01-07 12:56:36 0 279
Literature
Amorphous Iron (Fe Amorphous) Market Market Overview and Future Forecast: Insights by Fact MR
The global amorphous iron market is valued to be US$ 11.4 billion in 2023 and is...
بواسطة akshaygorde 2024-08-22 14:00:11 0 983
Networking
Probiotics Market 2024-2032 Report Size, Share, Growth, Future Trends and Recent Scope
Market Overview of the Probiotics Market: The Global Probiotics Market Report presents a...
بواسطة Alexalee30 2024-07-30 08:51:21 0 2كيلو بايت
أخرى
Solar Battery Market Segmentation, Opportunities, and Regional Analysis Report
We used primary and secondary research methods to examine the Solar Battery Market Share...
بواسطة Nick_Tech 2024-02-06 07:10:59 0 3كيلو بايت
إعلان مُمول