The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

script for cleaning up /backup?

Discussion in 'General Discussion' started by jmcole, Jul 31, 2008.

  1. jmcole

    jmcole Active Member

    Joined:
    Aug 17, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    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. MaraBlue

    MaraBlue Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    335
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Carmichael, CA
    cPanel Access Level:
    Root Administrator
    I would think this is a job for logrotate.
     
  3. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
  4. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Maybe cPanel itself should provide such sanitization functionality. It's an interesting suggestion to send to the developers ;)
     
  5. jmcole

    jmcole Active Member

    Joined:
    Aug 17, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    This solves half our issue, thanks. I do agree Kent in that this overall functionality needs to be built into WHM!
     
  6. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,130
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Anybody else is up for this request? Do we need to open a Bugzilla entry?
     
Loading...

Share This Page