• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk backups not being removed from /tmp

Slavik

Basic Pleskian
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?
 
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 :)
 
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 :)


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.
 
Well, set a cron to delete those files automatically everyday say at 9AM or earlier! Do you need help with that?
 
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!
 
Back
Top