Hello:
Does anyone know if there is a way to sinchronize the current existing accounts with backup drive?
I noticed that once accounts are terminated, in the backup drive the accounts remain there occupying lot of space.
CMO
Hello:
Does anyone know if there is a way to sinchronize the current existing accounts with backup drive?
I noticed that once accounts are terminated, in the backup drive the accounts remain there occupying lot of space.
CMO
There's a script at http://www.cplicensing.net/scripts.php that does this.
Name: cleanbackups
Version: 0.1
This script cleans up old backups. If some of you have noticed cpanel leaves backups of old accounts that have been terminated. This can comsume valuble space. This script runs thru /var/cpanel/users and compares those users with the cpanel backups. If it finds a backup that does not have a user in /var/cpanel/users it takes whatever action you told it to do (Report, or Delete). This script can be run from cron, this script also checks for cpbackup and sleeps until cpbackup stops.
Thank you snickn for the information.
CMO
snickn, I am not sure where I should upload the script and if I should change the extension from .txt to .pl
Please advise.
CMO
Well,
I believe it's originally without an extension, if you downloaded it to windows first, it likely received the *.txt.
You should either remove the extension altogether, or you should change it to *.pl
After that, chmod a+x the file, and than execute it ./clean_backups