Advertisement
Typhoon

Puppet Clear Reports

Jun 12th, 2015
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1. # Clear puppet reports older than 1 hour
  2. find /var/lib/puppet/reports -mmin +60 -exec rm -f {} \;
  3.  
  4. # ToDo : Create CronJob
  5.  
  6. # Another way how to delete files
  7.  
  8. find /path/to/directory -type f -print0| xargs -0 rm
  9.  
  10. or
  11.  
  12. find /path/to/directory -type f -exec rm {} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement