Advertisement
gen2monk

monks logrotate

Nov 21st, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.38 KB | None | 0 0
  1. $ cat /etc/cron.weekly/logrotate
  2. #!/bin/bash
  3.  
  4. /home/CAMPUS/gfadmin/logs/clustAarto/*
  5. {
  6. rotate 5
  7. compress
  8. weekly
  9. olddir ../archive/clustAarto
  10. }
  11. /home/CAMPUS/gfadmin/logs/clustACB/server.log
  12. {
  13. rotate 5
  14. compress
  15. weekly
  16. olddir ../archive/clustACB
  17. }
  18.  
  19. /home/CAMPUS/gfadmin/logs/clustADP/server.log
  20. {
  21. rotate 5
  22. compress
  23. weekly
  24. olddir ../archive/clustADP
  25. }
  26.  
  27. /home/CAMPUS/gfadmin/logs/clustBankTE/server.log
  28. {
  29. rotate 5
  30. compress
  31. weekly
  32. olddir ../archive/clustBankTE
  33. }
  34.  
  35. /home/CAMPUS/gfadmin/logs/clustBillTE/server.log
  36. {
  37. rotate 5
  38. compress
  39. weekly
  40. olddir ../archive/clustBillTE
  41. }
  42.  
  43. /home/CAMPUS/gfadmin/logs/clustJavaPGW/server.log
  44. {
  45. rotate 5
  46. compress
  47. weekly
  48. olddir ../archive/clustJavaPGW
  49. }
  50.  
  51. /home/CAMPUS/gfadmin/logs/default/server.log
  52. {
  53. rotate 5
  54. compress
  55. weekly
  56. olddir ../archive/default
  57. }
  58.  
  59. /home/CAMPUS/gfadmin/logs/server/server.log
  60. {
  61. rotate 5
  62. compress
  63. weekly
  64. olddir ../archive/server
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement