After setting up daily, weekly, and monthly backups from your WHM panel, backups are taken periodically to the specified directory. But after a while, even if an account is cancelled and
deleted, the backup files are not deleted. There is a plugin called Clean Backup for this — when you come to the Plugins section of your WHM panel and install it, you can instantly delete backup files or set a period for deletion. For example, we can configure the
plugin to delete a backup if no changes have been made for 7 days. The installation is quite simple; from your SSH panel, run:
cd /usr/src
wget http://download.ndchost.com/cleanbackups/latest-cleanbackups
sh latest-cleanbackupsWhen you run these commands, it will appear in the Plugins section of your WHM panel. It comes as Auto Cleaning Disabled; you can configure it from the Edit Settings section. The current version of the plugin is 10. When you configure the settings as shown in the
image, when a new version is released it will automatically update, and it will check your daily, weekly, and monthly backups and delete backups older than 30 days. You can set the number of days as you wish.

Leave a Comment
* Your comment will be published after approval.
Comments
0No comments yet. Be the first to comment!