What files can be safely deleted

verdon

Well-Known Member
Nov 1, 2003
934
16
168
Northern Ontario, Canada
cPanel Access Level
Root Administrator
Hi,

I have 2 drives on my server, 1 fairly small and the other large. The smaller drive is mostly OS and whm/cpanel, the larger is all my user dirs and backups.

Yesterday, I ran a number of cpanel updates and lost about 250-300 MB of space on my smaller drive. I suspect there's some stuff I can clean up to get back some of this space. As this drive now only has about 450 MB of available space, I'd definately like to reclaim some. I'd like to update from WHM 9.1.0 cPanel 9.1.0-R85 that I did yesterday to the new stable release from last night, but think I should free up some space first.

Any advice?

Thanks :)
 

nickn

Well-Known Member
PartnerNOC
Jun 15, 2003
616
1
168
I don't think this is the case. As you would notice an extra 300Mbyte downloading? Or at least I would, and I didn't. Try to use something like :

find / -size +1000000c -print

This command will find all files larger than 1 million bytes, you will obviously need to adjust this number, and remember 1000 bytes in a 1 KB, 1000 KBs in a Megabyte, etc :)

Or you can do it in blocks, which is easier in my opinion, remove the "c" so that :

find . -size +1000 -print

That would be 512KB because each block is a half KB. (or so)
 
Last edited:

melban

Registered
Nov 20, 2003
4
0
151
Phoenix, AZ
thanks this really helped.

For me it helped me find the 'cprestore' folder in both /home and /root. This folder save many uploaded restores that I'd done over the years. Reclaimed 30% drive space on my cPanel server.