in reply to Automatic zip and delete

If you're on linux, you might take a look at logrotate. It's quite powerful and flexible, and I think might do what you're trying to achieve. I use it at $work.