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..
Sponsorluk
sociofans

How to delete Backups in WHM/Cpanel with terminal

0
2K

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.

Sponsorluk
Sponsorluk
Site içinde arama yapın
Sponsorluk
Kategoriler
Read More
Other
Vacuum Gas Oil Market Analysis by Size, Share, Growth, Trends, Opportunities and Forecast (2024-2032) | UnivDatos Market Insights
According to a new report by UnivDatos Market Insights, the Vacuum Gas Oil Market is expected to...
By univdatos123 2024-11-18 09:44:25 0 652
Party
Do Nets impression Kevin Durant speak with Joe Tsai as part of the technique??
How terrible was the London conference amongst Kevin Durant and Joe Tsai upon Saturday? It would...
By Aikmans 2022-12-28 08:23:38 0 9K
Other
Automotive Luxury Vehicle Market size is expected to grow USD 1,327.1 billion by 2033
According to the Market Statsville Group (MSG), the global automotive luxury vehicle...
By marketstatsvillegroup 2023-08-16 06:22:48 0 3K
Networking
Truck & Bus Tire Market Worth US$ 68.5 billion by 2030
According to the Market Statsville Group (MSG), the global truck & bus tire market size is...
By vipinmsg 2023-05-16 07:44:18 0 4K
Health
Eyewear Market Size: Market Share and Analysis
The Eyewear Market was valued at USD 168 Bn in 2022 and is grow at a CAGR of 8.3% over the...
By mattmile92 2023-09-28 11:51:32 0 3K
Sponsorluk