System file cleanup

Status
Not open for further replies.

philmcdonnell

Verified User
Joined
Jan 6, 2004
Messages
184
Location
New York
Hello All,

How is everyone keeping their servers clean? I see there is tons of files that are created by DA but not cleaned up. For example log files for old domains still exist in the var/log folder.

Is there some listing somewhere of standard clean up practices?

Thanks,
Phil
 
I have the same question. At admin level domain number is not correct it also includes old deleted domains. There must be a way to clean up system.
 
Funny I posted this about 3 years ago and never received a response, seems like others have the same questions but nobody has the answers. Anyone???
 
connect to root and delete files. I delete them after three months.
 
connect to root and delete files. I delete them after three months.

Exactly what files? Do you have particular folders that you check? It would be nice to have a list of folder/files to delete an on what cycle.

Thanks,
Phil
 
That would be great if we had something like check list to check which folders.
Also folder related to DA. Maybe DA support can help us.
 
my /var/ often is full :(
It may have been created without enough space. You can modify your logrotate configuration to save less log information.

If you're still using mbox and have enough space in your /home partition, then you should switch to Dovecot/Maildir.

Jeff
 
If you are running CentOS and you want to do a cleanup run:


Bash:
curl -Ls https://raw.githubusercontent.com/YloXx/devops_tools/main/clean-centos.sh | sudo bash
If you are scrared to run, check te code! But this is what is does.
  • Trimming log files
  • Cleaning YUM caches
  • Cleaning all kinds of caches
  • Remove orphan packages
  • Cleaning .wp-cli cached WP downloads
  • Remove old kernels,
  • Remove Composer cache,
  • Remove core dumps,
  • Remove error_log files (cPanel),
  • Remove old custombuild 1.x (Directadmin)
 
Status
Not open for further replies.
Back
Top