Guest User

Untitled

a guest
Jul 21st, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. cron "housekeep application log files" do
  2. user "housekeeper"
  3. # mailto "your@example.com"
  4.  
  5. # 00:01 every night
  6. hour "0"
  7. minute "1"
  8.  
  9. # clean up logs older than 30 days
  10. command "/find ~/log/application-*.log.tar.gz -mtime +30 -exec rm {} \;"
  11. end
Add Comment
Please, Sign In to add comment