1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Plesk backups not being removed from /tmp

Discussion in 'Plesk 11.x for Linux' started by Slavik, Sep 2, 2012.

  1. Slavik

    Slavik Basic Pleskian

    17
    85%
    Joined:
    Mar 23, 2011
    Messages:
    44
    Likes Received:
    0
    As title.

    Each day im havng to remove 5gb+ of "dump" tars from the /tmp directory to stop it filling up

    Rather annoying.

    Any suggestions?
     
  2. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Have you set the number of backup files that can be saved on server or ftp resp in backup settings ...
    Also: what do you have for grep "dump" /etc/psa/psa.conf

    The worst case senario is to create a cron that deletes those files for you automatically :)
     
  3. Slavik

    Slavik Basic Pleskian

    17
    85%
    Joined:
    Mar 23, 2011
    Messages:
    44
    Likes Received:
    0

    DUMP_D /var/lib/psa/dumps


    The dumps directory is working fine, however it just seems to not remove files from the /tmp when done.
     
  4. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Well, set a cron to delete those files automatically everyday say at 9AM or earlier! Do you need help with that?
     
  5. Slavik

    Slavik Basic Pleskian

    17
    85%
    Joined:
    Mar 23, 2011
    Messages:
    44
    Likes Received:
    0
    If you could please :)
     
  6. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    The cron-job below will execute at 8:30am on every day of every month.

    Login to SHELL of your server:

    crontab -e

    and add the following line:

    30 8 * * * /bin/rm -fdr /tmp/*

    BTW: I hope by temp folder you meant /tmp/ right? if NOT then just replace that folder with the one you meant. If you still need help doing that, let me know!
     
Loading...