Skip to content

Instantly share code, notes, and snippets.

@rushipkar90
Created January 10, 2016 23:41
Show Gist options
  • Save rushipkar90/649aa58856b0c1506e5b to your computer and use it in GitHub Desktop.
Save rushipkar90/649aa58856b0c1506e5b 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