Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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