Incremental backup, how can I remove domains back ups after the domain is removed.


Well-Known Member
Jul 28, 2002
LA, Costa RIca
cPanel Access Level
Root Administrator
The Incremental backup too doesn't remove the back up file when you terminate a domain.

Didn't realize this and as you can imagine I now have over 100 domains that are not on our servers anymore but still are taking back up space.

Is there a way to check if the site is on the server and if not remove the back up data?

maybe a line of code or perl script that checks the username in the back up folder then checks the username in the cpanel users file and if they don't match remove the back up folder for that domain.

I know it's sounds like allot but just tossing around ideas right now.