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.

backups kiling space

Discussion in 'General Discussion' started by caeos, Feb 7, 2008.

  1. caeos

    caeos Well-Known Member

    Joined:
    Jul 18, 2007
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    UK
    My backups which run succesfully are killing my quota.
    I have finally managed to locate them but didnt think that the "rollback" folders were really needed. ???
    is there a quick way of removing them.
    i have set my main VPS control panel to ftp backups automatically also.

    thanks

    ps, is there a quick way of emptying the month old session files from /tmp
     
  2. Bailey

    Bailey Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    120
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Wisconsin
    When you say "my quota," are you referring to each individual users' quotas? On their hosting accounts?

    Or are you referring to overall disk space on your VPS?

    :D Bailey
     
  3. caeos

    caeos Well-Known Member

    Joined:
    Jul 18, 2007
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    UK
    its the overall space..
    its full of session files from december and january stuff like that.
    several gb worth.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,480
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What did you think "rollback" meant?

    Assuming you're speaking of cPanel system files saved for rollback, Untick the option in Tweak Settings > System section.


    This should work:

    rm -rf /tmp/sess*
     
  5. Bailey

    Bailey Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    120
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Wisconsin
    That's how servers work. The more backups you save, the more disk space they use. This is normal.

    If you don't want to use so much disk space, don't keep backups.

    (Not trying to sound blunt; it's just a matter-of-fact sort of thing.) :)

    :D Bailey
     
  6. caeos

    caeos Well-Known Member

    Joined:
    Jul 18, 2007
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    UK
    Thanks,
    As was indicated in my post, the actual backups are FTP'd to another server.

    I understand fully what rollbacks are, but WHY would CPanel save rollbacks from 15 versions ago? perhaps my bad choice of words.

    Perhaps there should be a "delete cpanel backups after x days" or "versions" option.

    This box IS unticked but CPanel is still doing keeping the backups and there are NO cron jobs pointing to a script to do it. :confused:

    and two dangerous pieces of advice i am very cautious of.
    albeit what i was looking for, thanks and
    - agghhh ;):eek:
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,480
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You should be. This command can make a real mess if you don't type it just as you see it.
    rm -rf /tmp/sess*

    It will remove all files that start with sess, in the /tmp/ directory. Move into the directory and then run it.

    If you're uncomfortable running commands you might like to have a peek at this.
    http://www.configserver.com/cp/cse.html
    (although you'd need to run a few to install it) ;)

    Speaking of directories, you'll undoubtedly find other files and folders on the server left over in some place or another. It's an important job of being an administrator to know them and how to remove them as needed to free up space. Like old backup files/directories.

    When in doubt, rename or move instead of delete.

    Exactly what directory are you looking at? You don't mention it.
     
  8. caeos

    caeos Well-Known Member

    Joined:
    Jul 18, 2007
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    UK
    It is the TMP directory on my vps root level. which has the following files in it . Youca nsee from teh date stamps how old they are (using config explorer)

    Code:
    spamassassin20959S0wJe7tmp	0	24-Dec-2007 18:05:58	
    .spamassassin26613Gcl5rtmp	4.0k	01-Feb-2008 10:18:00	
    .spamassassin2671WDP3o9tmp	28.0k	08-Jan-2008 17:09:17
    	.spamassassin7821QWL4v1tmp	19.2k	31-Dec-2007 20:27:10	
    .spamassassin7821QpT6ZHtmp	18.2k	31-Dec-2007 20:27:27	
    .spamassassin7821wkcC0etmp	5.4k	31-Dec-2007 20:27:36	
    ea3-distlist-CURRENT	179	05-Nov-2007 01:36:
    horde_32002.log	4.0k	19-Jan-2008 13:39:30	
    impatt0yyEmE	7.1k	07-Nov-2007 09:21:26	
    impatt15vvhN	40.8k	29-Jan-2008 15:55:19	
    impatt1D3QNJ	1.4k	19-Oct-2007 12:34:12	
    impatt1Gk2Nq	11.2k	11-Sep-2007 12:04:28	
    impatt1oTgSd	2.9M	19-Jan-2008 13:51:10	
    impatt6JgBca	19.9k	16-Jan-2008 18:00:22	
    impatt6XXXm0	343.7k	22-Aug-2007 09:10:10	
    impatt7P2bFE	46.3k	29-Dec-2007 16:38:57	
    impatt8MwHkN	7.8k	29-Dec-2007 16:38:57	
    Some of the home/usr/tmp folder files also go back a long way and as you can see, some of the files are a few meg in size.

    Again thanks for the help and i hope that this topic helps others that are unsure/nervous
     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,480
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    This will remove them the same way.

    rm -rf /tmp/imp*
     
Loading...

Share This Page