To address disk usage issues on your website based on the provided policy, follow these organized steps:
- Media Files:
- Consider storing images and videos on file-sharing servers if possible. Check with your hosting provider for options or features they offer for media storage.
- Core Dump Files:
- Before executing, ensure you understand each part of the command and test it in a safe environment.
- Non-Delivery Reports:
- Replace
cPanel_usernamewith your actual cPanel username. Ensure this is done safely, possibly after backing up important data.
- Replace
- Cached Files:
- Use a single caching plugin and flush cached data regularly. Check the plugin documentation for flushing instructions or settings to automate cache clearing.
- Data Backup:
- Before any deletions, create a backup of your website using cPanel's backup tool. Ensure you know how to restore from backups in case of issues.
- Automated Solutions:
- Explore setting up regular maintenance scripts or monitoring tools for automated management of these files and cache flushing.
- Seek Assistance:
- If unsure about executing commands, consider reaching out to technical support or a more experienced person to guide you safely.
Delete email files using the cron jobs provided:
rm -fv /home/cPanel_username/mail/new/*
rm -fv /home/cPanel_username/mail/cur/*
Use the provided cron job command to automatically delete core dump files:
rm -f $(find ${HOME} | grep /core.[0-9]*$) >/dev/null 2>&1
