ispconfig/temp Gigs of files

Discussion in 'General' started by bwrob, Mar 7, 2006.

  1. bwrob

    bwrob New Member

    Hi
    How to prevent ispconfig of filling up
    ispconfig/temp with gigs of files.
    I am tired of deleting it manually.

    thanks
    bob
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which files are in there? Pease post the ouput of "ls -l" from the temp directory.
     
  3. bwrob

    bwrob New Member

    till
    is in the dir:
    /home/admispconfig/ispconfig/temp

    How i got to it server went down to 50% full.
    I start searching and got to above dir.
    Delated all file, server went down to 12%

    Once a day i delate files with looong number from that dir.
    Gigs virtually gigs of i think backup data.
    I read it somewhere that is ok to delate those files.

    I would like to prevent it from formating at all.
    I might to rename that temp dir and see what is going to happen.

    thanks
    bob
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Dont do that if you wont break your server!

    Please post some names of the files that where created there.
     
  5. bwrob

    bwrob New Member

    OK today ls -l of temp dir server:
    /home/admispconfig/ispconfig/temp #
    ls -l total 2099212
    drwxr-xr-x 2 admispconfig admispconfig 4096 Mar 9 02:16 .
    drwxr-xr-x 8 admispconfig admispconfig 4096 Mar 9 07:26 ..
    -rw-r--r-- 1 root root 2147483647 Mar 9 02:14 zilKQJAS

    file name: zilKQJAS
    Size in Gigs

    bob
     
    Last edited: Mar 9, 2006
  6. falko

    falko Super Moderator ISPConfig Developer

    You can remove that file. What'S the output of
    Code:
    crontab -l
    ?
     
  7. bwrob

    bwrob New Member

    crontab -l
    # update time with ntp server
    # 0 3,9,15,21 * * * /usr/sbin/netdate 128.2.136.71 no email below
    0 3,9,15,21 * * * /usr/sbin/netdate tcp 128.2.136.71 >/dev/null 2>&1
    15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
    40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
    05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
    30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
    59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
    0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
    0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/nullserver:/
    #
     
    Last edited: Mar 9, 2006
  8. falko

    falko Super Moderator ISPConfig Developer

    Run
    Code:
    crontab -e
    and comment out this line:
    Code:
    #05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
     
  9. bwrob

    bwrob New Member

    I a kind thought that could be this.

    Done
    Thanks
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    We will check why the script does not clean up the temp directory correctly.
     
  11. AlArenal

    AlArenal New Member

    I'm currently writing some backup scripts and came across this issue as well.

    ls -l looks like this:
    Code:
    insgesamt 21292840
    -rwxr-xr-x 1 admispconfig admispconfig 475838913 2007-05-21 02:13 070e264219af5032797af754d3daddff.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475679870 2007-05-18 02:11 102cf5b8cb15be8cb78b3309ed7ad007.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475579484 2007-05-15 18:26 15813751c36c66706aa26c391b5d8f32.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475755452 2007-05-19 02:11 169b331e534744294347ac1f5da2fd60.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475579535 2007-05-16 02:06 1ace79abe1e28e5952d5f024feeb4763.zip
    -rw-r--r-- 1 root         root         599328368 2007-05-26 02:12 1c3176c9cee42a234514c6fc758f08e1.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475663973 2007-05-17 02:11 2573a0b39831bde46fca78146a324004.zip
    drwx------ 2 root         root              4096 2007-06-04 15:38 273a16c059531076e3a47732437abc28
    -rw-r--r-- 1 root         root         599452488 2007-05-27 02:15 2bc7dfd5182577bd5faa0d649f5a1d54.zip
    -rw-r--r-- 1 root         root         599480768 2007-05-28 02:06 3410b8dcf6e9f92818d6fd33eaf67920.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475680323 2007-05-18 02:06 3af60743b7cba5f335392f3f3ad0eb08.zip
    -rw-r--r-- 1 root         root         580425956 2007-05-24 02:12 4042b783d1ad94d8f6f6f5ff5c888687.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475579031 2007-05-15 18:32 4048479914339f9fe511a42dcd42a52b.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475579494 2007-05-15 18:33 41840aec8b99c46735df40b9a62666a6.zip
    -rw-r--r-- 1 root         root         599211290 2007-05-25 02:06 47e0ffb68f307a0e1cdb2dc219ebf297.zip
    -rw-r--r-- 1 root         root         599452025 2007-05-27 02:12 4ba5dc94c5b0a77290e10e9fea0f2b4b.zip
    -rw-r--r-- 1 root         root         580426409 2007-05-24 02:06 53803dbb45b57bc42fa80d8674d79f33.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475579545 2007-05-16 02:13 54d2f20f5c938146a5faaa7f122291f5.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475680333 2007-05-18 02:13 560a95e77433006a54e243ceb4ceba23.zip
    -rwxr-xr-x 1 admispconfig admispconfig 476004588 2007-05-23 02:15 5cd7ead70f2653533f6f3f036b422b78.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475924007 2007-05-22 02:06 619c37b2b7297b907a2de2ddf7c7ec4b.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475664426 2007-05-17 02:06 62772e7265dc5ffbde493a1959319bbf.zip
    -rwxr-xr-x 1 admispconfig admispconfig 476004578 2007-05-23 02:06 68309c98ae206f1b7d0b24b44ff7ebe8.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475838903 2007-05-21 02:06 695ba3035bb80ef5b8ad164870d2f92f.zip
    -rw-r--r-- 1 root         root         599328821 2007-05-26 02:06 6dbe7bf414cebefed48d490adfc701bb.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475764407 2007-05-20 02:06 6f04450894aacaeec5ac1393f8c611d0.zip
    -rw-r--r-- 1 root         root         599452478 2007-05-27 02:06 7604dc9e1f767a6c325c855785b05bf7.zip
    -rw-r--r-- 1 root         root           3172270 2007-06-04 15:29 7a042d2656aa44349635bd71e53bdf99.zip
    -rw-r--r-- 1 root         root              7699 2007-06-04 15:29 836e733c145d21ebbd6da74fe8cd6589.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475764417 2007-05-20 02:13 8573b032e8570cfa3dbe00e4ba46a47a.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475755905 2007-05-19 02:06 889502c8569b2060479249cb9b74ccfb.zip
    -rw-r--r-- 1 root         root         599328831 2007-05-26 02:15 89ef96f2dc0adde699f2e9b5a830f9a9.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475664436 2007-05-17 02:13 9ac9a0a6e718201ace157b55be2388cb.zip
    -rw-r--r-- 1 root         root         599210837 2007-05-25 02:15 a04d9ffbe3ef29aa8f4b8355078f1f8b.zip
    -rw-r--r-- 1 root         root         599480778 2007-05-28 02:14 a27e9e086db7e3f93a995160183f2382.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475755915 2007-05-19 02:12 b25934d1cd38349244b6fc7f3465e42c.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475579082 2007-05-16 02:11 bf26573a966635a6b6b3989528df460e.zip
    -rw-r--r-- 1 root         root         599211300 2007-05-25 02:17 cc666282aa3ad70d60cee797bb937f0c.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475924017 2007-05-22 02:13 d40c52501a6c878dd199da05f5f9bbee.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475923554 2007-05-22 02:12 d476e6e3aa923065fbbd4ab4ed2db9b9.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475838450 2007-05-21 02:11 d9d230c88b888201940910d108a7d861.zip
    -rwxr-xr-x 1 admispconfig admispconfig 476004125 2007-05-23 02:13 e02fd07d41db8284cee9ab27a1bce006.zip
    -rwxr-xr-x 1 admispconfig admispconfig 475763954 2007-05-20 02:11 f918d84db4a177875f13717ea2b60c8c.zip
    -rw-r--r-- 1 root         root         580426419 2007-05-24 02:14 fbda7480f6c8464fa75042077cbd77c3.zip
    -rw-r--r-- 1 root         root         599480315 2007-05-28 02:12 ff5e7eede0ddce599ed93d9cf2e3f9b5.zip
    drwxr-xr-x 2 admispconfig admispconfig      4096 2007-02-06 15:47 squirrelmail
    
    I'm using the current stable version and manually activated creation of backups (ZIPs in /vaw/www/web*/backup ), so commenting out ISPConfig's backup script in crontab would not make much sense ;)

    P.S.:
    The backup files count against their respective quotas, right?

    P.P.S.:
    I would expect the backup script not only creating backup files of webs, but of ISPConfig as well. ISPConfig already has a backup dir, but it's as emtpy as I'd like to see the temp dir ;)
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    You can delete these files and directories and add script to cron that cleans up this directory every night after the backup script is run.
     
  13. AlArenal

    AlArenal New Member

    OK, thnx :)
     

Share This Page