script for cleaning up /backup?

jmcole

Active Member
Aug 17, 2004
25
0
151
Hello,

We currently utilize WHM's incremental backups and wanted to know if anyone out there has a script to remove terminated account folders from /backups as well as deleting large files on /backup that are no longer within active account's /home directories.

/backup on one of our servers is approaching 90% full so we wanted to get this cleaned up sooner than later, thanks!

Regards,
Josh
 

MaraBlue

Well-Known Member
May 3, 2005
332
2
168
Carmichael, CA
cPanel Access Level
Root Administrator
Hello,

We currently utilize WHM's incremental backups and wanted to know if anyone out there has a script to remove terminated account folders from /backups as well as deleting large files on /backup that are no longer within active account's /home directories.

/backup on one of our servers is approaching 90% full so we wanted to get this cleaned up sooner than later, thanks!

Regards,
Josh
I would think this is a job for logrotate.