Clean out /home and /home2 :
cd /home
locate backup- |grep /home > /root/delete
locate .pureftp* |grep /home >> /root/delete
locate cpmove-* |grep /home >> /root/delete
locate fantastico_backups |grep /home >> /root/delete
deltree -f /home/cprestore/*
deltree -f /home2/cprestore/*
deltree -f /home/cpmove*
deltree -f /home2/cpmove*
=================================
script to clean home
#!/bin/sh
#
#
locate backup- |xargs rm -rf
locate .pureftp |xargs rm -rf
locate cpmove- |xargs rm -rf
locate fantastico_backups |xargs rm -rf
deltree -rf /home/cprestore/*
deltree -rf /home2/cprestore/*
deltree -rf /home/cpmove*
deltree -rf /home2/cpmove*
locate cpanel.TMP |xargs rm -rf
locate .trash |xargs rm -rf
locate error_log |grep home |xargs rm -rf
done
=================================
Also you can find large files using
= cd /home
= find ./ -size +10000k -exec ls -lShr {} \;
= find / -user uname -exec ls -lhSr {} \;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment