Page 1 of 1

How to do server cleanup by getting more space?

Posted: Thu Apr 20, 2017 4:42 pm
by AFN
Besides the backups being located in /home/backup which I can delete from the control panel, what about the log files? Do the log files just keep growing in size or do they get replaced every so often so log files don't just keep growing in size?

When there are any backups, is the only place that backups are stored is in /home/backup or is there another place they are stored? If so where?

When I upload something via FTP, are those files stored anywhere temporarily on the server, if so how can I remove the temporary files? What about when I upload something via a third-party application such as through WordPress, are the files temporally stored somewhere on the server before being uploaded to the correct destination?

When I delete a website or a subdomain name from the control panel does it remove every trace of the website or subdomain name?

Re: How to do server cleanup by getting more space?

Posted: Fri Apr 21, 2017 12:42 pm
by ScIT
AFN wrote:Besides the backups being located in /home/backup which I can delete from the control panel, what about the log files?
which log files do you mean? Log is normaly log, so you can remove them.
AFN wrote:Do the log files just keep growing in size or do they get replaced every so often so log files don't just keep growing in size?
Normaly logrotate is setup, so the logs will be archived and older logs zipped.
AFN wrote:When there are any backups, is the only place that backups are stored is in /home/backup or is there another place they are stored?
the backup will be placed in /backups, maybe you have in /home/backups a symlink that points to /backups.
AFN wrote:When I upload something via FTP, are those files stored anywhere temporarily on the server, if so how can I remove the temporary files?
They will be uploaded directly to the folder without any temporary files.
AFN wrote:What about when I upload something via a third-party application such as through WordPress, are the files temporally stored somewhere on the server before being uploaded to the correct destination?
Normaly not, but this manages your third-party extension, maybe they will create some temporary files.
AFN wrote:When I delete a website or a subdomain name from the control panel does it remove every trace of the website or subdomain name?
yes, if you remove a user, the full /home/user directory will be removed. With all files, configurations and logs. Also backups should be removed.

Re: How to do server cleanup by getting more space?

Posted: Fri Apr 21, 2017 4:48 pm
by mehargags
It is better NOT to Delete logs but rather Truncate them...

You can run the below command and change minimum value shown in red to see what big files you have.

find / -type f -size +20M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'

Re: How to do server cleanup by getting more space?

Posted: Sun Apr 23, 2017 11:55 pm
by AFN
@ScIT and @mehargags I want to say think you for your replies.