Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    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
     
  2. MaraBlue

    MaraBlue Well-Known Member

    Joined:
    May 3, 2005
    Messages:
    334
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Carmichael, CA
    cPanel Access Level:
    Root Administrator
    I would think this is a job for logrotate.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    507
    Likes Received:
    4
    Trophy Points:
    168
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,182
    Likes Received:
    7
    Trophy Points:
    168
    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 ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. jmcole

    jmcole Active Member

    Joined:
    Aug 17, 2004
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    151
    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,182
    Likes Received:
    7
    Trophy Points:
    168
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice