blog Auto Cleanup

Tags:
snippet

Taking advantage of cron and the rmtrash tool from homebrew, I often setup several simple cron entries to automatically move old files to Trash

@hourly        find ~/Downloads -mindepth 1 -maxdepth 1 -mtime +7d -exec /usr/local/bin/rmtrash '{}' \;