Recently very useful WHM plugin has been written by the NDChost and is freely available at
http://www.ndchost.com/cpanel-whm/plugins/cleanbackups/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.
Installation Instructions
- Code: Select all
cd /home
rm -f latest-cleanbackups
wget http://www.ndchost.com/cpanel-whm/plugins/cleanbackups/download.php
sh latest-cleanbackups
Log into the WHM, click on plugins, then Clean Backups. From there you can enable and disable the auto cleaning process, configure how long backups for non-existent accounts will be kept, see recent activity and even run the cleaning script by manually.