1. CyberPanel local backups were stacking up
  2. Wrote a script to cleanup
  3. Added script to cron
  4. ????
  5. PROFIT!

for dir in /home/*; do
dir=$(echo $dir | cut -c 7-)
if [ “$dir” == ‘cyberpanel’ ] || [ “$dir” == ‘backup’ ] || [ “$dir” == ‘vmail’ ]
then
:
else
echo $dir
find /home/$dir/backup/*.tar.gz -mtime +7 -exec rm {} \;
fi
done