Wednesday, August 24, 2011

Cleaning backups of unused domains

September 7, 2010 by  
Filed under cPanel

1 Comment

cPanel Clean Backup

cPanel backup functionality is a bit weird. It does not remove the taken backups of domains that are even removed years ago. If you do not regularly monitor this and clean unused backups, you may end up finishing you server’s storage.

However, when your server has hundreds of customers accounts hosted and people are coming and going regularly it is really tough, if not impossible, to monitor regularly an clean the backups of terminated domain names. To facilitate this, NDCHost developed a nice plugin named “Clean Backups”. The plugin is fully free! So you don’t need to calculate your ROI as you are getting 100% return .


cPanels backup script will not remove backups for accounts that no longer exist and these backups will remain on the backup drive until removed. This plug-in gives administrators the ability to clean up their backup directory by setting how long they want to keep backups for accounts that no longer exist and removing those backups when they expire. The script can be run by hand or after automatically after the cPanel backup script finishes.


A Remarkable Book from Wiley-Finance
"An excellent book!"
  — Paul Wilmott
Want to break into the lucrative world of trading and quantitative finance? You need this book!

You understand, for installing this plugin you will need root access to your server.  So, long to y our server using SSH as root. Then type the following commands:

# cd /home
# rm -f latest-cleanbackups
# wget
# sh latest-cleanbackups

Your installation is completed. Now login to WHM with root privilege. You will get Clean Backup item in the Plugins section. The remaining part is self-explanatory. From the interface, you can enable and disable the auto cleaning process of backups of non-existent accounts, configure how long backups for non-existent accounts should be kept, see recent activity  log! You can also run the cleaning script by manually.


To uninstall the plugin you simply need to remove the following files.


SSH to your server as root and run the following commands

# rm /usr/local/cpanel/whostmgr/docroot/cleanbackups
# rm/var/cpanel/cleanbackups/
# rm /usr/local/cpanel/whostmgr/docroot/cgi/addon_cleanbackups.cgi
# rm /scripts/postcpbackup
# rm /scripts/precpbackup

That’s it! You are done! I hope you enjoyed the reading!

GD Star Rating
a WordPress rating system
Cleaning backups of unused domains, 10.0 out of 10 based on 1 rating
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Related posts:

  1. Writting WHM Plugins
  2. Fixing WHM problems automatically using WHM Autofixer
  3. Installing new theme?
  4. Adding Spell Checker in SquirrelMail in cPanel server
  5. Clean/Flushing Exim mail queue


One Response to “Cleaning backups of unused domains”


Check out what others are saying about this post...
  1. Clean Backups Plug-in - cPanel Forums says:

    [...] thanks for opening it! I have put those instructions at: Cleaning backups of unused domains | Control Panel Blog __________________ [Largest Linux Wallpapers site] :: [Flash Gamz - Swords and Sandals!] :: All [...]


Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!
Click here to cancel reply.