Skip to content

Instantly share code, notes, and snippets.

@rushipkar90
Created September 25, 2015 16:27
Show Gist options
  • Save rushipkar90/57cbb310b30172822bfc to your computer and use it in GitHub Desktop.
Save rushipkar90/57cbb310b30172822bfc to your computer and use it in GitHub Desktop.
cleanup.sh
#!/bin/sh
ionice -c3 find /home/*/fantastico_backups/ -name 'backup*' -mtime +15 -exec rm {} \;
ionice -c3 find /home/*/fantastico_backups/ -name '.backup*' -mtime +15 -exec rm {} \;
ionice -c3 find /home/*/tmp/Cpanel_Form_file.upload.* -mtime +0 -exec rm {} \;
ionice -c3 find /home/*/mail/*/*/.Trash/cur/* -type f -mtime +6 -exec rm {} \;
ionice -c3 find /home/*/mail/*/*/.Trash/new/* -type f -mtime +6 -exec rm {} \;
ionice -c3 find /home/*/mail/.Trash/cur/* -type f -mtime +6 -exec rm {} \;
ionice -c3 find /home/*/mail/.Trash/new/* -type f -mtime +6 -exec rm {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment