How can I configure logrotate so that it emails me the files 'after' they have been compressed? Right now I am emailed the uncompressed files which can results in huge attachments.

link|improve this question
Welcome to Stack Overflow! This question is better suited for serverfault.com. I have voted to move it there; after five people vote it will move automatically. – Greg Hewgill Oct 4 '09 at 10:07
feedback

migrated from stackoverflow.com Oct 4 '09 at 14:09

This question came from our site for professional and enthusiast programmers.

1 Answer

logrotate (3.7.8-1) in Debian has a patch "sharedscripts-519432.patch" which will give the rotated log as an argument to postrotate scripts. It could be used to mail the compressed file.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.