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!

Backup drive getting full

Discussion in 'General Discussion' started by myusername, Jun 5, 2004.

  1. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    693
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I tried my best to seed this thread so others searching can pull up relevant results.

    Was it cpanelplus or cpanel scripts, cpanelhelp, cpanelsomething......

    I saw a script about 2 years back that cross-read actual active users to past users.

    When the backup partition gets full, you have to remove old sites, or use a removal script.

    The goal of the script was to remove old backups for sites that were, at one time, customers of your firm.

    I have /backup getting full. I need to remove tar files that are out of date. I suppose I can go in and remove every last modified, but would like to see the script that does that by itself.

    Anyone know what thread that is, or the poster?

    keywords:

    backup, backup clean, backup removal, /backup, backup drive, backup script, backup full, mount,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 myusername, Jun 5, 2004
    Last edited: Jun 5, 2004
  2. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    693
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Yep thats the one. Thanks anand ;)

    in case your link breaks in the future for others the link likely will be here. the script is called cleanbackups.

    http://www.cplicensing.net/scripts.php
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    np :)

    well i thought might as well give you the direct link to the script, but this is better anyways ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. heymichelle

    heymichelle Well-Known Member

    Joined:
    Feb 25, 2002
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    306
    How to use the script


    How exactly would I install this script?

    I am a newbie at this, and no instructions was supplied with this script.

    thanks
     
  6. Aric1

    Aric1 Well-Known Member

    Joined:
    Oct 15, 2003
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    DataCenter Provider
    Just wget the file from your server when logged in as root, chown the script to root, chmod the file to 0700 and run it (either perl scriptname or ./scriptname from within the same directory or /path/to/script/scriptname outside it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. heymichelle

    heymichelle Well-Known Member

    Joined:
    Feb 25, 2002
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    306
    Okay remember I am a newbie


    I go into root by using SSH, than exactly what do i do?

    whats the commands, etc..?
     
  8. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Code:
    wget [url]http://www.cplicensing.net/files/scripts/cleanbackups[/url]
    chown root cleanbackups
    chmod 0700 cleanbackups
    perl cleanbackups
    The 2nd line shouldn't be needed if you're logged in as root because it would automatically be owned by root, but it doesn't hurt to make sure.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. heymichelle

    heymichelle Well-Known Member

    Joined:
    Feb 25, 2002
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    306
    Thank you VERY much!

    Thanks again! Thats what i needed

    :)
     
  10. heymichelle

    heymichelle Well-Known Member

    Joined:
    Feb 25, 2002
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    306
    another question


    when I do this: perl cleanbackups - it displays this: Detected Old Backup... /backup/cpbackup/weekly/abdesign.tar.gz

    Do I need to use another command in order to delete those old backups?
     
  11. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Not sure. I haven't used this script myself, but I'll take a look later to find out and let you know if nobody else has. I'm just getting ready to go out for a bit now, but will look at it when I get back.
     
    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