Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Aug 2004
    Posts
    25

    Default script for cleaning up /backup?

    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

  2. #2
    Member
    Join Date
    May 2005
    Location
    Auburn, CA
    Posts
    234

    Default

    Quote Originally Posted by jmcole View Post
    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.
    cPanel: Latest Release Version [11.30.*]
    PHP 5.3.8, Apache 2.2.21, MySQL 5.1.54, Perl 5.8.8, CentOS 4.9

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    396

    Default

    I've used the clean backup script here http://cplicensing.net/scripts.php it seems to do the trick
    -Albert

  4. #4
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    833
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Maybe cPanel itself should provide such sanitization functionality. It's an interesting suggestion to send to the developers
    Content is the king. Usability is my God.

  5. #5
    Member
    Join Date
    Aug 2004
    Posts
    25

    Default

    Quote Originally Posted by asmithjr View Post
    I've used the clean backup script here http://cplicensing.net/scripts.php it seems to do the trick
    This solves half our issue, thanks. I do agree Kent in that this overall functionality needs to be built into WHM!

  6. #6
    Member
    Join Date
    Jan 2008
    Location
    Buenos Aires, Argentina
    Posts
    833
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jmcole View Post
    This solves half our issue, thanks. I do agree Kent in that this overall functionality needs to be built into WHM!
    Anybody else is up for this request? Do we need to open a Bugzilla entry?
    Content is the king. Usability is my God.

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 01-22-2010, 05:53 PM
  2. Replies: 7
    Last Post: 10-29-2006, 05:40 PM
  3. Cleaning up DNS
    By jdhf99 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-24-2006, 11:48 AM
  4. cleaning /usr ...
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-04-2004, 03:43 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube