Skip to content

Instantly share code, notes, and snippets.

@evilgeniuschronicles
Created August 7, 2021 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evilgeniuschronicles/30f735789dc9ba0e0af4093940cec319 to your computer and use it in GitHub Desktop.
Save evilgeniuschronicles/30f735789dc9ba0e0af4093940cec319 to your computer and use it in GitHub Desktop.
Transient Directory Cron Jobs
46 */6 * * * find /home/dave/Transient/ -maxdepth 20 -type f -mtime +14 -exec rm {} \;
46 */6 * * * find /home/dave/Transient/ -maxdepth 20 -type l -mtime +14 -exec rm {} \;
46 */6 * * * find /home/dave/Transient/ -maxdepth 20 -type d -mtime +14 -exec rmdir {} \;
46 */6 * * * find /home/dave/Transient/ -maxdepth 20 -type d -iname ".*" -mtime +14 -exec rmdir {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment